[gnome-settings-daemon] power: Don't reconfigure idle timeouts when the user goes idle



commit 0d462282bb93d5a965c39f5b557e37d380c9dcde
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 11 20:32:54 2013 -0500

    power: Don't reconfigure idle timeouts when the user goes idle
    
    The code in idle_configure does not depend on the users idle
    status, therefore calling it when the status changes is
    unnecessary. Worse, it can have the unfortunate side-effect
    of making the timeouts larger than configured, causing them to
    be out of sync with what gnome-shell is doing.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691002

 plugins/power/gsd-power-manager.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 76f31d4..390c49f 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3388,15 +3388,6 @@ idle_dbus_signal_cb (GDBusProxy *proxy,
                 g_debug ("Received gnome session inhibitor change");
                 idle_configure (manager);
         }
-        if (g_strcmp0 (signal_name, "StatusChanged") == 0) {
-                guint status;
-
-                g_variant_get (parameters, "(u)", &status);
-                g_dbus_proxy_set_cached_property (proxy, "status",
-                                                  g_variant_new ("u", status));
-                g_debug ("Received gnome session status change");
-                idle_configure (manager);
-        }
 }
 
 static void



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