aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-16 10:03:09 -0500
committerTed Gould <ted@gould.cx>2010-03-16 10:03:09 -0500
commit4103fca23c5dd1668e9685785b8da8dcafc72df7 (patch)
tree62b7e5180f8a60663d3836c0a0f867ad436ee76f /src/session-service.c
parent9b55c3d958f7fe43e92c9e9de4b955a5eac680e7 (diff)
parentae2c94b40826bfa0274a3eae8ae515d99b07adb5 (diff)
downloadayatana-indicator-session-4103fca23c5dd1668e9685785b8da8dcafc72df7.tar.gz
ayatana-indicator-session-4103fca23c5dd1668e9685785b8da8dcafc72df7.tar.bz2
ayatana-indicator-session-4103fca23c5dd1668e9685785b8da8dcafc72df7.zip
Adding a GConf key for showing the logout item.
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 4820f59..7ce4c0d 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -563,6 +563,7 @@ rebuild_items (DbusmenuMenuitem *root,
} else {
dbusmenu_menuitem_property_set(logout_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Log Out..."));
}
+ dbusmenu_menuitem_property_set_bool(logout_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, show_logout());
dbusmenu_menuitem_child_append(root, logout_mi);
g_signal_connect(G_OBJECT(logout_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(show_dialog), "logout");
@@ -604,7 +605,7 @@ rebuild_items (DbusmenuMenuitem *root,
restart_shutdown_logout_mi->restart_mi = restart_mi;
restart_shutdown_logout_mi->shutdown_mi = shutdown_mi;
- update_menu_entries(restart_shutdown_logout_mi);
+ update_menu_entries(restart_shutdown_logout_mi, logout_mi);
if (g_file_test(DESKTOP_FILE, G_FILE_TEST_EXISTS)) {
GAppInfo * appinfo = G_APP_INFO(g_desktop_app_info_new_from_filename(DESKTOP_FILE));