aboutsummaryrefslogtreecommitdiff
path: root/src/device-menu-mgr.c
diff options
context:
space:
mode:
authorMarc Deslauriers <marc.deslauriers@canonical.com>2012-01-30 09:39:29 -0500
committerMarc Deslauriers <marc.deslauriers@canonical.com>2012-01-30 09:39:29 -0500
commit38923e553288e7d69d7c524bd1a7010cc83e77db (patch)
treeeef6b3efbffbc716efe7aa9a441198d31007ff32 /src/device-menu-mgr.c
parent77699eb5a22ed5da6b008368486121e9ef7fc4e0 (diff)
downloadayatana-indicator-session-38923e553288e7d69d7c524bd1a7010cc83e77db.tar.gz
ayatana-indicator-session-38923e553288e7d69d7c524bd1a7010cc83e77db.tar.bz2
ayatana-indicator-session-38923e553288e7d69d7c524bd1a7010cc83e77db.zip
Remove dead GSS throttling code. Let gnome-settings-daemon
handle locking the screen when UPower requests it.
Diffstat (limited to 'src/device-menu-mgr.c')
-rw-r--r--src/device-menu-mgr.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/device-menu-mgr.c b/src/device-menu-mgr.c
index 3858564..d3734a2 100644
--- a/src/device-menu-mgr.c
+++ b/src/device-menu-mgr.c
@@ -83,7 +83,6 @@ static DBusGProxy * up_prop_proxy = NULL;
static void device_menu_mgr_ensure_settings_client (DeviceMenuMgr* self);
static void setup_up (DeviceMenuMgr* self);
static void device_menu_mgr_rebuild_items (DeviceMenuMgr *self);
-static void lock_if_possible (DeviceMenuMgr* self);
static void machine_sleep_with_context (DeviceMenuMgr* self,
gchar* type);
static void show_system_settings_with_context (DbusmenuMenuitem * mi,
@@ -173,27 +172,6 @@ keybinding_changed (GSettings *settings,
return;
}
-/* Check to see if the lockdown key is protecting from
- locking the screen. If not, lock it. */
-static void
-lock_if_possible (DeviceMenuMgr* self) {
- device_menu_mgr_ensure_settings_client (self);
-
- if (!g_settings_get_boolean (lockdown_settings, LOCKDOWN_KEY_SCREENSAVER)) {
- lock_screen (NULL, 0, NULL);
- }
- return;
-}
-
-/* A return from the command to sleep the system. Make sure
- that we unthrottle the screensaver. */
-static void
-sleep_response (DBusGProxy * proxy, DBusGProxyCall * call, gpointer data)
-{
- screensaver_unthrottle();
- return;
-}
-
static void
machine_sleep_from_suspend (DbusmenuMenuitem * mi,
guint timestamp,
@@ -221,11 +199,9 @@ machine_sleep_with_context (DeviceMenuMgr* self, gchar* type)
g_warning("Can not %s as no upower proxy", type);
}
- screensaver_throttle(type);
- lock_if_possible (self);
dbus_g_proxy_begin_call(up_main_proxy,
type,
- sleep_response,
+ NULL,
NULL,
NULL,
G_TYPE_INVALID);