aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-19 12:15:16 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-19 12:15:16 -0500
commit1f028ea9d2dac631add338eff7f3e614074f48f8 (patch)
tree8ed4e097be7fe57235a3bda268d3a36406a6d159 /src/session-service.c
parentc9e0ebffe5cb3787c5437bd6ad8482ed8a432ddb (diff)
downloadayatana-indicator-session-1f028ea9d2dac631add338eff7f3e614074f48f8.tar.gz
ayatana-indicator-session-1f028ea9d2dac631add338eff7f3e614074f48f8.tar.bz2
ayatana-indicator-session-1f028ea9d2dac631add338eff7f3e614074f48f8.zip
SessionMenuMgr should own its toplevel menuitem.
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 2349684..7c5dd95 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -89,10 +89,9 @@ main (int argc, char ** argv)
session_dbus = session_dbus_new();
- DbusmenuMenuitem * root_item = dbusmenu_menuitem_new ();
- session_menu_mgr_new (root_item, session_dbus, is_greeter_mode());
+ SessionMenuMgr * menu_mgr = session_menu_mgr_new (session_dbus, is_greeter_mode());
DbusmenuServer* server = dbusmenu_server_new (INDICATOR_SESSION_DBUS_OBJECT);
- dbusmenu_server_set_root (server, root_item);
+ dbusmenu_server_set_root (server, session_menu_mgr_get_menu (menu_mgr));
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);