Re: Re: Build error with The name `enable_javascript_markup' does not exist in the context of `WebKit.Settings?' when trying to build for buster-backports

[email protected] <[email protected]>
Newsgroups gmane.linux.debian.devel.gtk-gnome
Message-ID <6ee6-5db2c480-15-7d47ef80@77338563>
The compilation error happens because the symbol `enable_javascript_markup`
property isn't present in vala vapi files, which means that valac-vapi has to be
updated, currently the version in buster is 0.42. For a grep of `enable_javascript`,
I get the following:

$ grep enable_javascript /usr/share/vala-0.42/vapi/webkit2gtk-4.0.vapi 
		public bool get_enable_javascript ();
		public void set_enable_javascript (bool enabled);
		public bool enable_javascript { get; set construct; }

And for the same, with vala 0.46 on testing:

$ grep enable_javascript /usr/share/vala-0.46/vapi/webkit2gtk-4.0.vapi 
		public bool get_enable_javascript ();
		public bool get_enable_javascript_markup ();
		public void set_enable_javascript (bool enabled);
		public void set_enable_javascript_markup (bool enabled);
		public bool enable_javascript { get; set construct; }
		public bool enable_javascript_markup { get; set construct; }


Which means that the symbol isn't currently present in the valac-0.42-vapi

A minimal vala example for testing:

using WebKit;

// valac --pkg webkit2gtk-4.0 --thread test.vala
public static int main (string[] args) {

  var test = new WebKit.Settings();
  test.enable_javascript = true;
  test.enable_javascript_markup = true;
  return 0;
}


Regards
Mohammed Sadiq
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.