aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-11 16:12:01 -0600
committerTed Gould <ted@gould.cx>2010-02-11 16:12:01 -0600
commitccaa76fac008a5de7b8eacf3f70dfe96dd15ce16 (patch)
treef7b0078fb47f52f9603498f6b537de2601c9afcb /src
parent2398976ff0152f8cdbd1c2ec84663b33598abd7d (diff)
downloadayatana-indicator-session-ccaa76fac008a5de7b8eacf3f70dfe96dd15ce16.tar.gz
ayatana-indicator-session-ccaa76fac008a5de7b8eacf3f70dfe96dd15ce16.tar.bz2
ayatana-indicator-session-ccaa76fac008a5de7b8eacf3f70dfe96dd15ce16.zip
Switching the menu item that we're creating.
Diffstat (limited to 'src')
-rw-r--r--src/session-service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 3cbb29c..b414328 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"
@@ -481,9 +482,8 @@ rebuild_items (DbusmenuMenuitem *root,
ensure_gconf_client ();
switch_menuitem = dbusmenu_menuitem_new ();
- 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_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);