[gnome-settings-daemon] orientation: Claim D-Bus name after exporting objects



commit f244052fc22fc8bc7630c19f9f86704cb6ed5264
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Dec 19 17:03:02 2012 +0000

    orientation: Claim D-Bus name after exporting objects

 plugins/orientation/gsd-orientation-manager.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/plugins/orientation/gsd-orientation-manager.c b/plugins/orientation/gsd-orientation-manager.c
index 4ed035d..200dcd7 100644
--- a/plugins/orientation/gsd-orientation-manager.c
+++ b/plugins/orientation/gsd-orientation-manager.c
@@ -352,14 +352,6 @@ on_bus_gotten (GObject               *source_object,
         }
         manager->priv->connection = connection;
 
-        manager->priv->name_id = g_bus_own_name_on_connection (connection,
-                                                               GSD_ORIENTATION_DBUS_NAME,
-                                                               G_BUS_NAME_OWNER_FLAGS_NONE,
-                                                               NULL,
-                                                               NULL,
-                                                               NULL,
-                                                               NULL);
-
         g_dbus_connection_register_object (connection,
                                            GSD_ORIENTATION_DBUS_PATH,
                                            manager->priv->introspection_data->interfaces[0],
@@ -377,6 +369,14 @@ on_bus_gotten (GObject               *source_object,
                           NULL,
                           (GAsyncReadyCallback) xrandr_ready_cb,
                           manager);
+
+        manager->priv->name_id = g_bus_own_name_on_connection (connection,
+                                                               GSD_ORIENTATION_DBUS_NAME,
+                                                               G_BUS_NAME_OWNER_FLAGS_NONE,
+                                                               NULL,
+                                                               NULL,
+                                                               NULL,
+                                                               NULL);
 }
 
 static GUdevDevice *



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