aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-06 17:26:41 -0500
committerTed Gould <ted@gould.cx>2010-04-06 17:26:41 -0500
commit58cb1d4475110e662fa2d67717daa5b263c3331e (patch)
treed5ebe78cf8d9069cbf373dc2e5512701ad0dbdee /src/session-service.c
parent54f8f8b90005978ed2376d695bb22947f0878c0b (diff)
downloadayatana-indicator-session-58cb1d4475110e662fa2d67717daa5b263c3331e.tar.gz
ayatana-indicator-session-58cb1d4475110e662fa2d67717daa5b263c3331e.tar.bz2
ayatana-indicator-session-58cb1d4475110e662fa2d67717daa5b263c3331e.zip
Check to see if the shutdown and restart items should be shown on first run.
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 054bb17..4fc12a1 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -656,6 +656,7 @@ rebuild_items (DbusmenuMenuitem *root,
} else {
dbusmenu_menuitem_property_set(restart_mi, RESTART_ITEM_LABEL, _("Restart..."));
}
+ dbusmenu_menuitem_property_set_bool(restart_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, show_restart());
dbusmenu_menuitem_child_append(root, restart_mi);
g_signal_connect(G_OBJECT(restart_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(show_dialog), "restart");
@@ -665,6 +666,7 @@ rebuild_items (DbusmenuMenuitem *root,
} else {
dbusmenu_menuitem_property_set(shutdown_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Shut Down..."));
}
+ dbusmenu_menuitem_property_set_bool(shutdown_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, show_shutdown());
dbusmenu_menuitem_child_append(root, shutdown_mi);
g_signal_connect(G_OBJECT(shutdown_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(show_dialog), "shutdown");