]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-3.0: Fix regression of StatusIcon.position_menu()
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 29 Mar 2018 06:32:03 +0000 (08:32 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 29 Mar 2018 06:34:19 +0000 (08:34 +0200)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891629

vapi/gtk+-3.0.vapi
vapi/metadata/Gtk-3.0-custom.vala
vapi/metadata/Gtk-3.0.metadata

index 5123bf9e2290d02d76a88d8ee996f76881a3b270..e21b0fd367243bfffa9e3886794c95c7782b90c8 100644 (file)
@@ -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")]
index ced90d6b913b497dbbf0ed8030257cfebee43814..efbf7f5723e965a0a48d7b0c36889945cebab2b0 100644 (file)
@@ -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]
index 8bf4561847cf3aa90dd9c55e26bac793a23b074b..008c20d9f486b7695499c8ba700ba93216f932a0 100644 (file)
@@ -482,6 +482,8 @@ PlacesSidebar
 SelectionData
   .free destroys_instance
   .get_data skip=false
+StatusIcon
+  .position_menu skip
 Style
   .base unowned=false
   .bg unowned=false