diff options
author | Conor Curran <conor.curran@canonical.com> | 2012-02-08 17:30:50 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2012-02-08 17:30:50 +0000 |
commit | 3b8d13f352d76bae85dcff763af583927fdaaad7 (patch) | |
tree | 42e684a9682fbe900684e22e059b713c3406ba30 /src/device-menu-mgr.c | |
parent | 4145c29279197d5985d348fbe2ef219a4c015a11 (diff) | |
parent | 6975e8a7aab320c77f3cb3de345415b9f26ba5cd (diff) | |
download | ayatana-indicator-session-3b8d13f352d76bae85dcff763af583927fdaaad7.tar.gz ayatana-indicator-session-3b8d13f352d76bae85dcff763af583927fdaaad7.tar.bz2 ayatana-indicator-session-3b8d13f352d76bae85dcff763af583927fdaaad7.zip |
properly fix conflict and make sure to not check for updates 1 minute after starting the service or Pitti will kill me :)
Diffstat (limited to 'src/device-menu-mgr.c')
-rw-r--r-- | src/device-menu-mgr.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/device-menu-mgr.c b/src/device-menu-mgr.c index 6ce5962..f8f0696 100644 --- a/src/device-menu-mgr.c +++ b/src/device-menu-mgr.c @@ -82,7 +82,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, @@ -172,27 +171,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, @@ -220,11 +198,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); |