aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-07-15 16:26:37 +0100
committerConor Curran <conor.curran@canonical.com>2011-07-15 16:26:37 +0100
commit797cf05a2f643dfed7b70db6abf2095f1216aa89 (patch)
tree769eafebcc24bbf82c8471955c920e7eb88d26c0 /src/session-service.c
parent019030dc92107fb553e1f791cc2225b67b74968b (diff)
downloadayatana-indicator-session-797cf05a2f643dfed7b70db6abf2095f1216aa89.tar.gz
ayatana-indicator-session-797cf05a2f643dfed7b70db6abf2095f1216aa89.tar.bz2
ayatana-indicator-session-797cf05a2f643dfed7b70db6abf2095f1216aa89.zip
user menu nicely separated for now, next the session menu
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 6095838..23cb6ab 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -595,15 +595,15 @@ main (int argc, char ** argv)
DbusmenuServer * server = dbusmenu_server_new(INDICATOR_SESSION_DBUS_OBJECT);
dbusmenu_server_set_root(server, session_root_menuitem);
-
// Users
- UserMenuMgr* user_mgr = g_object_new (USER_TYPE_MENU_MGR, NULL);
+ UserMenuMgr* user_mgr = user_menu_mgr_new (session_dbus);
setup_restart_watch();
setup_up();
- DbusmenuServer * users_server = dbusmenu_server_new (INDICATOR_USERS_DBUS_OBJECT);
- dbusmenu_server_set_root (users_server, user_mgr->root_item);
+ DbusmenuServer* users_server = dbusmenu_server_new (INDICATOR_USERS_DBUS_OBJECT);
+
+ dbusmenu_server_set_root (users_server, user_mgr_get_root_item (user_mgr));
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);