aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-18 09:33:29 -0600
committerTed Gould <ted@gould.cx>2010-02-18 09:33:29 -0600
commit9dab152713df2694ed4f447561bfbd31a51479e9 (patch)
tree743a33089648dda9aeddf0043c21b4093dda0b88 /src/session-service.c
parent3c3e267d1cb1f7310d6266093853cca2e16bbc2b (diff)
parentc6661b02cfede0afff6102d7ebff656a166e0b29 (diff)
downloadayatana-indicator-session-9dab152713df2694ed4f447561bfbd31a51479e9.tar.gz
ayatana-indicator-session-9dab152713df2694ed4f447561bfbd31a51479e9.tar.bz2
ayatana-indicator-session-9dab152713df2694ed4f447561bfbd31a51479e9.zip
Switching label to be 'switch from'
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 3303317..d074cb8 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -38,6 +38,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <libindicator/indicator-service.h>
#include "dbus-shared-names.h"
+#include "dbusmenu-shared.h"
#include "gtk-dialog/gconf-helper.h"
@@ -454,7 +455,8 @@ rebuild_items (DbusmenuMenuitem *root,
ensure_gconf_client ();
switch_menuitem = dbusmenu_menuitem_new ();
- dbusmenu_menuitem_property_set (switch_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _("Switch User..."));
+ dbusmenu_menuitem_property_set (switch_menuitem, DBUSMENU_MENUITEM_PROP_TYPE, MENU_SWITCH_TYPE);
+ dbusmenu_menuitem_property_set (switch_menuitem, MENU_SWITCH_USER, g_get_user_name());
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);
@@ -498,7 +500,6 @@ rebuild_items (DbusmenuMenuitem *root,
g_signal_connect (G_OBJECT (mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_user_session), user);
}
}
-
}
DbusmenuMenuitem * separator = dbusmenu_menuitem_new();