From bf0d96ed544a2a50ad7ca350baf75aab3d77622c Mon Sep 17 00:00:00 2001 From: Nelson Marques Date: Tue, 19 Jun 2012 23:46:42 +0200 Subject: libpanel-applet: Use on_bus_acquired instead of on_name_acquired Prevent race conditions when the session starts (panel is displayed instantly); This is well documented in the gdbus documentation: https://bugzilla.gnome.org/show_bug.cgi?id=654843 --- libmate-panel-applet/mate-panel-applet-factory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmate-panel-applet') diff --git a/libmate-panel-applet/mate-panel-applet-factory.c b/libmate-panel-applet/mate-panel-applet-factory.c index fd7713af..9821e323 100644 --- a/libmate-panel-applet/mate-panel-applet-factory.c +++ b/libmate-panel-applet/mate-panel-applet-factory.c @@ -210,7 +210,7 @@ static const GDBusInterfaceVTable interface_vtable = { static GDBusNodeInfo *introspection_data = NULL; static void -on_name_acquired (GDBusConnection *connection, +on_bus_acquired (GDBusConnection *connection, const gchar *name, MatePanelAppletFactory *factory) { @@ -251,7 +251,7 @@ mate_panel_applet_factory_register_service (MatePanelAppletFactory *factory) g_bus_own_name (G_BUS_TYPE_SESSION, service_name, G_BUS_NAME_OWNER_FLAGS_NONE, - (GBusAcquiredCallback) on_name_acquired, + (GBusAcquiredCallback) on_bus_acquired, NULL, (GBusNameLostCallback) on_name_lost, factory, NULL); -- cgit v1.2.1