From: Rico Tzschichholz Date: Thu, 29 Mar 2018 06:32:03 +0000 (+0200) Subject: gtk+-3.0: Fix regression of StatusIcon.position_menu() X-Git-Tag: 0.41.90~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b3418e09042ff6f3f8b09cba715316baccd5a99;p=thirdparty%2Fvala.git gtk+-3.0: Fix regression of StatusIcon.position_menu() https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891629 --- diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi index 5123bf9e2..e21b0fd36 100644 --- a/vapi/gtk+-3.0.vapi +++ b/vapi/gtk+-3.0.vapi @@ -7255,8 +7255,9 @@ namespace Gtk { public uint32 get_x11_window_id (); [Version (since = "2.10")] public bool is_embedded (); + [CCode (instance_pos = -1)] [Version (since = "2.10")] - public static void position_menu (Gtk.Menu menu, ref int x, ref int y, out bool push_in, Gtk.StatusIcon user_data); + public void position_menu (Gtk.Menu menu, ref int x, ref int y, out bool push_in); [Version (since = "2.10")] public void set_from_file (string filename); [Version (since = "2.14")] diff --git a/vapi/metadata/Gtk-3.0-custom.vala b/vapi/metadata/Gtk-3.0-custom.vala index ced90d6b9..efbf7f572 100644 --- a/vapi/metadata/Gtk-3.0-custom.vala +++ b/vapi/metadata/Gtk-3.0-custom.vala @@ -54,6 +54,12 @@ namespace Gtk { public struct RecentData { } + public class StatusIcon : GLib.Object { + [CCode (instance_pos = -1)] + [Version (since = "2.10")] + public void position_menu (Gtk.Menu menu, ref int x, ref int y, out bool push_in); + } + [CCode (type_id = "gtk_style_get_type ()")] public class Style : GLib.Object { [NoWrapper] diff --git a/vapi/metadata/Gtk-3.0.metadata b/vapi/metadata/Gtk-3.0.metadata index 8bf456184..008c20d9f 100644 --- a/vapi/metadata/Gtk-3.0.metadata +++ b/vapi/metadata/Gtk-3.0.metadata @@ -482,6 +482,8 @@ PlacesSidebar SelectionData .free destroys_instance .get_data skip=false +StatusIcon + .position_menu skip Style .base unowned=false .bg unowned=false