diff options
author | Ted Gould <ted@gould.cx> | 2010-02-11 16:12:01 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-11 16:12:01 -0600 |
commit | ccaa76fac008a5de7b8eacf3f70dfe96dd15ce16 (patch) | |
tree | f7b0078fb47f52f9603498f6b537de2601c9afcb /src/session-service.c | |
parent | 2398976ff0152f8cdbd1c2ec84663b33598abd7d (diff) | |
download | ayatana-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/session-service.c')
-rw-r--r-- | src/session-service.c | 6 |
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); |