aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-07-07 17:46:00 +0100
committerConor Curran <conor.curran@canonical.com>2011-07-07 17:46:00 +0100
commit4f535763d9e05e41c81b1a8fbf262aea1246f616 (patch)
treed6bfbe5a1a694e24cb709ae711aef90d70cca84f /src/session-service.c
parent6721214222e040c718da1c417cdbd8d3489c855d (diff)
downloadayatana-indicator-session-4f535763d9e05e41c81b1a8fbf262aea1246f616.tar.gz
ayatana-indicator-session-4f535763d9e05e41c81b1a8fbf262aea1246f616.tar.bz2
ayatana-indicator-session-4f535763d9e05e41c81b1a8fbf262aea1246f616.zip
icon updates for the user menu panel
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/session-service.c b/src/session-service.c
index ed95080..9cd7800 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -627,10 +627,9 @@ rebuild_user_items (DbusmenuMenuitem *root,
if (check_new_session ())
{
-
switch_menuitem = dbusmenu_menuitem_new ();
- 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_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);
}