]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Add DBusConnection 'closed' signal as 'on_closed'
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 6 Jun 2017 15:45:06 +0000 (17:45 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 7 Jun 2017 06:12:03 +0000 (08:12 +0200)
It was masked by property with same name.

https://bugzilla.gnome.org/show_bug.cgi?id=684358

vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index e1469759ed90fea79333a10658b10268cbebc626..782f243c4c46fce797320d136b3c9afdd87555b6 100644 (file)
@@ -691,6 +691,8 @@ namespace GLib {
                public string guid { get; construct; }
                public GLib.IOStream stream { get; construct; }
                public string unique_name { get; }
+               [CCode (cname = "closed")]
+               public signal void on_closed (bool remote_peer_vanished, GLib.Error? error);
        }
        [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_interface_info_ref", type_id = "g_dbus_interface_info_get_type ()", unref_function = "g_dbus_interface_info_unref")]
        [Compact]
index 3217b27145d68a4aed3a12205a41d4be13cb1c18..5a176074758447dc3ccdb1dd963fea2b493bbb58 100644 (file)
@@ -317,6 +317,10 @@ AsyncInitable
   .new* skip
   .init_async#virtual_method virtual
 
+// Bug #684358: GDBusConnection `closed` signal conficts with property
+DBusConnection
+  .closed#signal name="on_closed"
+
 // Bug #666797: No support for generic methods in GIR parser
 DBusConnection
   .register_object skip