diff options
author | Ted Gould <ted@canonical.com> | 2009-09-14 21:19:26 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-14 21:19:26 -0500 |
commit | 7315df65d4e77d6924c56ca03db1a971055b3c94 (patch) | |
tree | fff99128d25f45dcb7b3536862ee08fe6e81bac4 /src/status-service.c | |
parent | 319529314aabad11e0c630e65c0f1c5fc953e067 (diff) | |
parent | 0bae63fccf73ab48515dcc4374e37935088d6b42 (diff) | |
download | ayatana-indicator-session-7315df65d4e77d6924c56ca03db1a971055b3c94.tar.gz ayatana-indicator-session-7315df65d4e77d6924c56ca03db1a971055b3c94.tar.bz2 ayatana-indicator-session-7315df65d4e77d6924c56ca03db1a971055b3c94.zip |
Fixes for the design team.
Diffstat (limited to 'src/status-service.c')
-rw-r--r-- | src/status-service.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/status-service.c b/src/status-service.c index d8f60d4..8ce7962 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -124,33 +124,6 @@ status_update (void) { return; } -/* A fun little function to actually lock the screen. If, - that's what you want, let's do it! */ -static void -lock_screen (DbusmenuMenuitem * mi, gpointer data) -{ - g_debug("Lock Screen"); - - DBusGConnection * session_bus = dbus_g_bus_get(DBUS_BUS_SESSION, NULL); - g_return_if_fail(session_bus != NULL); - - DBusGProxy * proxy = dbus_g_proxy_new_for_name_owner(session_bus, - "org.gnome.ScreenSaver", - "/", - "org.gnome.ScreenSaver", - NULL); - g_return_if_fail(proxy != NULL); - - dbus_g_proxy_call_no_reply(proxy, - "Lock", - G_TYPE_INVALID, - G_TYPE_INVALID); - - g_object_unref(proxy); - - return; -} - static void status_menu_click (DbusmenuMenuitem * mi, gpointer data) { @@ -244,11 +217,6 @@ build_menu (gpointer data) g_debug("Built %s", status_strings[i]); } - DbusmenuMenuitem * mi = dbusmenu_menuitem_new(); - dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Lock Screen")); - g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(lock_screen), GINT_TO_POINTER(i)); - dbusmenu_menuitem_child_append(root, mi); - return FALSE; } |