aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-10-28 17:26:40 -0700
committerTed Gould <ted@gould.cx>2013-10-28 17:26:40 -0700
commitf33e02386a7bff8c3fbf092af513fabb9b8a1fee (patch)
tree97d75ebb87405686a97d688c71f394105cfb912c /src/service.c
parent77ec76b2cebdce34e6fdd3996003a31ac573203a (diff)
parentb77606c40b9a614021db60fd2c2053f5ab882c2a (diff)
downloadayatana-indicator-session-f33e02386a7bff8c3fbf092af513fabb9b8a1fee.tar.gz
ayatana-indicator-session-f33e02386a7bff8c3fbf092af513fabb9b8a1fee.tar.bz2
ayatana-indicator-session-f33e02386a7bff8c3fbf092af513fabb9b8a1fee.zip
Merge trunk
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/service.c b/src/service.c
index b7b1ba2..efcb04f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -464,16 +464,15 @@ create_switch_section (IndicatorSessionService * self)
item = g_menu_item_new (ellipsis ? _("Switch Account…")
: _("Switch Account"), action);
}
- else if (g_hash_table_size (p->users) == 1)
- {
- const char * action = "indicator.switch-to-greeter";
- item = g_menu_item_new (_("Lock"), action);
- }
else
{
- const char * action = "indicator.switch-to-greeter";
- item = g_menu_item_new (ellipsis ? _("Lock/Switch Account…")
- : _("Lock/Switch Account"), action);
+ const char * action = "indicator.switch-to-screensaver";
+
+ if (g_hash_table_size (p->users) == 1)
+ item = g_menu_item_new (_("Lock"), action);
+ else
+ item = g_menu_item_new (ellipsis ? _("Lock/Switch Account…")
+ : _("Lock/Switch Account"), action);
}
str = g_settings_get_string (p->keybinding_settings, "screensaver");
g_menu_item_set_attribute (item, "accel", "s", str);