diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-07-15 16:26:37 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-07-15 16:26:37 +0100 |
commit | 797cf05a2f643dfed7b70db6abf2095f1216aa89 (patch) | |
tree | 769eafebcc24bbf82c8471955c920e7eb88d26c0 /src/session-service.c | |
parent | 019030dc92107fb553e1f791cc2225b67b74968b (diff) | |
download | ayatana-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.c | 8 |
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); |