[vala] atk: fix Util.add_global_event_listener callback type



commit f49877d8a37771638f0a8b394c01a4e4da4e5c43
Author: Evan Nemerson <evan coeus-group com>
Date:   Tue Oct 23 16:07:24 2012 -0700

    atk: fix Util.add_global_event_listener callback type
    
    Fixes bug 685552.

 vapi/atk.vapi                     |    4 +++-
 vapi/metadata/Atk-1.0-custom.vala |    2 ++
 vapi/metadata/Atk-1.0.metadata    |    1 +
 3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/vapi/atk.vapi b/vapi/atk.vapi
index ff96f28..a477376 100644
--- a/vapi/atk.vapi
+++ b/vapi/atk.vapi
@@ -226,7 +226,7 @@ namespace Atk {
 		[CCode (cheader_filename = "atk/atk.h", cname = "atk_add_focus_tracker")]
 		public static uint add_focus_tracker (Atk.EventListener focus_tracker);
 		[CCode (cheader_filename = "atk/atk.h", cname = "atk_add_global_event_listener")]
-		public static uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
+		public static uint add_global_event_listener ([CCode (type = "GSignalEmissionHook")] Atk.SignalEmissionHook listener, string event_type);
 		[CCode (cheader_filename = "atk/atk.h", cname = "atk_add_key_event_listener")]
 		public static uint add_key_event_listener (Atk.KeySnoopFunc listener);
 		[CCode (cheader_filename = "atk/atk.h", cname = "atk_focus_tracker_init")]
@@ -774,6 +774,8 @@ namespace Atk {
 	public delegate int KeySnoopFunc (Atk.KeyEventStruct event);
 	[CCode (cheader_filename = "atk/atk.h", has_target = false)]
 	public delegate void PropertyChangeHandler (Atk.Object Param1, Atk.PropertyValues Param2);
+	[CCode (cheader_filename = "atk/atk.h", cname = "GSignalEmissionHook", has_target = false)]
+	public delegate bool SignalEmissionHook (GLib.SignalInvocationHint ihint, [CCode (array_length_pos = 1.9)] Atk.Value[] param_values, void* data);
 	[CCode (cheader_filename = "atk/atk.h")]
 	[Deprecated (replacement = "Atk.Util.add_focus_tracker", since = "vala-0.16")]
 	public static uint add_focus_tracker (Atk.EventListener focus_tracker);
diff --git a/vapi/metadata/Atk-1.0-custom.vala b/vapi/metadata/Atk-1.0-custom.vala
index b194222..22f9418 100644
--- a/vapi/metadata/Atk-1.0-custom.vala
+++ b/vapi/metadata/Atk-1.0-custom.vala
@@ -52,6 +52,8 @@ namespace Atk {
 	public delegate int KeySnoopFunc (Atk.KeyEventStruct event);
 	[CCode (has_target = false)]
 	public delegate void PropertyChangeHandler (Atk.Object Param1, Atk.PropertyValues Param2);
+	[CCode (cname = "GSignalEmissionHook", has_target = false)]
+	public delegate bool SignalEmissionHook (GLib.SignalInvocationHint ihint, [CCode (array_length_pos = 1.9)] Value[] param_values, void* data);
 
 	[Deprecated (replacement = "Atk.Util.add_focus_tracker", since = "vala-0.16")]
 	public static uint add_focus_tracker (Atk.EventListener focus_tracker);
diff --git a/vapi/metadata/Atk-1.0.metadata b/vapi/metadata/Atk-1.0.metadata
index de22f0a..908de49 100644
--- a/vapi/metadata/Atk-1.0.metadata
+++ b/vapi/metadata/Atk-1.0.metadata
@@ -19,6 +19,7 @@ Text.get_bounded_ranges skip
 // Move static methods into classes (mostly Util)
 add_focus_tracker parent="Atk.Util"
 add_global_event_listener parent="Atk.Util"
+  .listener type="Atk.SignalEmissionHook"
 add_key_event_listener parent="Atk.Util"
 focus_tracker_init parent="Atk.Util"
 focus_tracker_notify parent="Atk.Util"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]