diff options
author | Jan Lukas Gernert <jangernert@gmail.com> | 2017-11-05 19:18:24 +0300 |
---|---|---|
committer | Jan Lukas Gernert <jangernert@gmail.com> | 2017-11-05 19:18:24 +0300 |
commit | 7355187d2792a4422ae3a6639ffd1a5b187465a0 (patch) | |
tree | 21fcddedd7e1a98cd484042630e8022b061e278b | |
parent | 0be997409c028fc58bab397fc0f9a1ec3c4ed7da (diff) |
patch webkit vapi
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/Widgets/ArticleView.vala | 2 | ||||
-rw-r--r-- | vapi/webkit2gtk-4.0.deps | 2 | ||||
-rw-r--r-- | vapi/webkit2gtk-4.0.vapi | 8 |
4 files changed, 10 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1db8c3fd..6d20c374 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ find_package(Vala REQUIRED) include(ValaVersion) include(ValaPrecompile) include(GResource) -ensure_vala_version("0.38" MINIMUM) +ensure_vala_version("0.36" MINIMUM) pkg_check_modules(LIBUNITY QUIET unity) diff --git a/src/Widgets/ArticleView.vala b/src/Widgets/ArticleView.vala index 26d9bfb8..1571eaa3 100644 --- a/src/Widgets/ArticleView.vala +++ b/src/Widgets/ArticleView.vala @@ -777,7 +777,7 @@ public class FeedReader.ArticleView : Gtk.Overlay { action.activate.connect(() => { Utils.saveImageDialog(uri); }); - menu.append(new WebKit.ContextMenuItem.from_gaction(action, _("Save image as"))); + menu.append(new WebKit.ContextMenuItem.from_gaction(action, _("Save image as"), null)); } if(menu.first() == null) diff --git a/vapi/webkit2gtk-4.0.deps b/vapi/webkit2gtk-4.0.deps deleted file mode 100644 index 2868ee0c..00000000 --- a/vapi/webkit2gtk-4.0.deps +++ /dev/null @@ -1,2 +0,0 @@ -gtk+-3.0 -libsoup-2.4 diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi index df78fa3a..f028a0eb 100644 --- a/vapi/webkit2gtk-4.0.vapi +++ b/vapi/webkit2gtk-4.0.vapi @@ -95,12 +95,19 @@ namespace WebKit { [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_item_get_type ()")] public class ContextMenuItem : GLib.InitiallyUnowned { [CCode (has_construct_function = false)] + [Version (deprecated = true, deprecated_since = "2.18")] public ContextMenuItem (Gtk.Action action); [CCode (has_construct_function = false)] + [Version (since = "2.18")] + public ContextMenuItem.from_gaction (GLib.Action action, string label, GLib.Variant? target); + [CCode (has_construct_function = false)] public ContextMenuItem.from_stock_action (WebKit.ContextMenuAction action); [CCode (has_construct_function = false)] public ContextMenuItem.from_stock_action_with_label (WebKit.ContextMenuAction action, string label); + [Version (deprecated = true, deprecated_since = "2.18")] public unowned Gtk.Action get_action (); + [Version (since = "2.18")] + public unowned GLib.Action get_gaction (); public WebKit.ContextMenuAction get_stock_action (); public unowned WebKit.ContextMenu get_submenu (); public bool is_separator (); @@ -1445,3 +1452,4 @@ namespace WebKit { [Version (since = "2.8")] public static bool user_media_permission_is_for_video_device (WebKit.UserMediaPermissionRequest request); } + |