]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: use GLib.Func for Cancellable.connect argument
authorEvan Nemerson <evan@coeus-group.com>
Fri, 4 Feb 2011 19:43:37 +0000 (11:43 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Fri, 4 Feb 2011 19:43:37 +0000 (11:43 -0800)
vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index f3b83f4a226ca05c45810befadceeaa3d817dc47..e31982b8adc649da3fab2e6d56b3a7b1a5af99f0 100644 (file)
@@ -158,7 +158,7 @@ namespace GLib {
                [CCode (has_construct_function = false)]
                public Cancellable ();
                public void cancel ();
-               public ulong connect (GLib.Callback callback, void* data, GLib.DestroyNotify data_destroy_func);
+               public ulong connect ([CCode (type = "GCallback*")] owned GLib.Func<GLib.Cancellable> callback);
                public void disconnect (ulong handler_id);
                public static unowned GLib.Cancellable get_current ();
                public int get_fd ();
index 754f92be4c8bf79c2ce4a3b5ec05f096d496571b..073e984120312309839d64c3fb13784f1c2abda3 100644 (file)
@@ -292,6 +292,9 @@ GActionGroup::action_enabled_changed has_emitter="1"
 GActionGroup::action_state_changed has_emitter="1"
 
 g_cancellable_set_error_if_cancelled error_types="IOError"
+g_cancellable_connect.callback type_name="GLib.Func<GLib.Cancellable>" ctype="GCallback*" transfer_ownership="1"
+g_cancellable_connect.data hidden="1"
+g_cancellable_connect.data_destroy_func hidden="1"
 
 GDBusAuthObserver::authorize_authenticated_peer has_emitter="1"
 GDBusConnection:closed hidden="1"