aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-08 17:04:25 -0600
committerTed Gould <ted@gould.cx>2010-02-08 17:04:25 -0600
commit4ec15094555e5bc71a46f16ea9bf101e41e59631 (patch)
treec68691988ef873dcd835bab9a26ed0c8b8c4aacf
parent8e583e9965fd7f98c121e766cea4fb1aeb302366 (diff)
downloadayatana-indicator-session-4ec15094555e5bc71a46f16ea9bf101e41e59631.tar.gz
ayatana-indicator-session-4ec15094555e5bc71a46f16ea9bf101e41e59631.tar.bz2
ayatana-indicator-session-4ec15094555e5bc71a46f16ea9bf101e41e59631.zip
First pass, get the string.
-rw-r--r--src/session-service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session-service.c b/src/session-service.c
index e89a9a0..3cbb29c 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -481,7 +481,9 @@ rebuild_items (DbusmenuMenuitem *root,
ensure_gconf_client ();
switch_menuitem = dbusmenu_menuitem_new ();
- dbusmenu_menuitem_property_set (switch_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _("Switch User..."));
+ gchar * switchlabel = g_strdup_printf(_("Switch from %s..."), g_get_user_name());
+ dbusmenu_menuitem_property_set (switch_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, switchlabel);
+ g_free(switchlabel);
dbusmenu_menuitem_child_append (root, switch_menuitem);
g_signal_connect (G_OBJECT (switch_menuitem), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_new_session), NULL);