summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-03-29 08:32:03 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-03-29 08:34:19 +0200
commit4b3418e09042ff6f3f8b09cba715316baccd5a99 (patch)
tree3a9f41e69d52837baad57cfba8b78d4b67f662ac
parent724397a2530ef683ff05bf7774b20781194e8c1c (diff)
downloadvala-4b3418e09042ff6f3f8b09cba715316baccd5a99.tar.gz
gtk+-3.0: Fix regression of StatusIcon.position_menu()
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891629
-rw-r--r--vapi/gtk+-3.0.vapi3
-rw-r--r--vapi/metadata/Gtk-3.0-custom.vala6
-rw-r--r--vapi/metadata/Gtk-3.0.metadata2
3 files changed, 10 insertions, 1 deletions
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