aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-06 10:43:18 -0500
committerTed Gould <ted@gould.cx>2010-08-06 10:43:18 -0500
commite86e25a79fbedda83e81e07afd3d0981cf1db44b (patch)
treefff5973759d0492e3e5c6d7969dcae669588c1a0 /src/session-service.c
parent1ed276d9ef453783bcbc9361ec492b999321d8d8 (diff)
downloadayatana-indicator-session-e86e25a79fbedda83e81e07afd3d0981cf1db44b.tar.gz
ayatana-indicator-session-e86e25a79fbedda83e81e07afd3d0981cf1db44b.tar.bz2
ayatana-indicator-session-e86e25a79fbedda83e81e07afd3d0981cf1db44b.zip
Removing the ability to have the menu item say anything other than 'Lock Screen'
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 4fc12a1..65640c7 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -516,14 +516,9 @@ rebuild_items (DbusmenuMenuitem *root,
/* Lock screen item */
if (can_lockscreen) {
lock_menuitem = dbusmenu_menuitem_new();
- if (will_lock_screen()) {
- dbusmenu_menuitem_property_set(lock_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _("Lock Screen"));
- } else {
- dbusmenu_menuitem_property_set(lock_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _("Start Screensaver"));
- }
+ dbusmenu_menuitem_property_set(lock_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _("Lock Screen"));
g_signal_connect(G_OBJECT(lock_menuitem), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(lock_screen), NULL);
dbusmenu_menuitem_child_append(root, lock_menuitem);
- lock_screen_update_item(lock_menuitem);
}
/* Set to NULL just incase we don't end up building one */