[krb5-auth-dialog] Move object registration from name acquired to bus acquired



commit b9431bc950ff61e0985abd106b4a68402376b355
Author: Guido Günther <agx sigxcpu org>
Date:   Fri Apr 1 18:35:44 2011 +0200

    Move object registration from name acquired to bus acquired
    
    This unbreaks dbus based activation where the exported interfaces
    wouldn't be available when the application first requesting it looks at
    it resulting in:
    
    DBusException: org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gnome.KrbAuthDialog' on object at path /org/gnome/KrbAuthDialog

 src/ka-dbus.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ka-dbus.c b/src/ka-dbus.c
index 4a7be2c..a79f85f 100644
--- a/src/ka-dbus.c
+++ b/src/ka-dbus.c
@@ -171,9 +171,9 @@ static const GDBusInterfaceVTable interface_vtable =
 
 
 static void
-ka_dbus_on_name_acquired (GDBusConnection *connection,
-                          const gchar *name G_GNUC_UNUSED,
-                          gpointer user_data)
+ka_dbus_on_bus_acquired (GDBusConnection *connection,
+                         const gchar     *name G_GNUC_UNUSED,
+                         gpointer         user_data)
 {
     KaApplet *applet = user_data;
     guint id;
@@ -233,8 +233,8 @@ ka_dbus_connect (KaApplet *applet)
     dbus_owner_id = g_bus_own_name (G_BUS_TYPE_SESSION,
                                     "org.gnome.KrbAuthDialog",
                                     G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT,
+                                    ka_dbus_on_bus_acquired,
                                     NULL,
-                                    ka_dbus_on_name_acquired,
                                     ka_dbus_on_name_lost,
                                     applet,
                                     NULL);



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