[gnome-settings-daemon] power: Move signal connection to the correct place



commit 96d61f9af39b56819a54dd38551a99e0547390fc
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 17 17:53:33 2013 +0100

    power: Move signal connection to the correct place
    
    That's where we already start listening to the g-properties-changed
    signal.

 plugins/power/gsd-power-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index f9b22bd..4bc5e88 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3320,6 +3320,8 @@ gsd_power_manager_start (GsdPowerManager *manager,
         g_signal_connect (manager->priv->session, "g-properties-changed",
                           G_CALLBACK (engine_session_active_changed_cb),
                           manager);
+        g_signal_connect (manager->priv->session, "g-signal",
+                          G_CALLBACK (idle_dbus_signal_cb), manager);
 
         manager->priv->kbd_brightness_old = -1;
         manager->priv->kbd_brightness_pre_dim = -1;
@@ -3357,8 +3359,6 @@ gsd_power_manager_start (GsdPowerManager *manager,
                                   manager);
 
         /* connect to the session */
-        g_signal_connect (manager->priv->session, "g-signal",
-                          G_CALLBACK (idle_dbus_signal_cb), manager);
         g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION,
                                   0,
                                   NULL,



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