[vala] gio-2.0: Add DBusConnection 'closed' signal as 'on_closed'



commit dea6a4a5d9728c0ddf365e5624fb77281f77ccdf
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Jun 6 17:45:06 2017 +0200

    gio-2.0: Add DBusConnection 'closed' signal as 'on_closed'
    
    It was masked by property with same name.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684358

 vapi/gio-2.0.vapi              |    2 ++
 vapi/metadata/Gio-2.0.metadata |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index e146975..782f243 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -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]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 3217b27..5a17607 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -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


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