summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNelson Marques <[email protected]>2012-06-19 23:46:42 +0200
committerNelson Marques <[email protected]>2012-06-19 23:46:42 +0200
commitbf0d96ed544a2a50ad7ca350baf75aab3d77622c (patch)
tree98f4c9c981cdcb0590b156a8e0f709bdbd0669a3
parent6b4bc7a4e45fec8a17c9be53338cfdca5eb4cc24 (diff)
downloadmate-panel-bf0d96ed544a2a50ad7ca350baf75aab3d77622c.tar.bz2
mate-panel-bf0d96ed544a2a50ad7ca350baf75aab3d77622c.tar.xz
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
-rw-r--r--libmate-panel-applet/mate-panel-applet-factory.c4
1 files changed, 2 insertions, 2 deletions
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);