summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Grawert <[email protected]>2008-10-13 16:53:28 +0200
committerBenjamin Valentin <[email protected]>2012-03-26 23:58:12 +0200
commit8c25e1bdd328a8712735c0b00cf4aede7993da1d (patch)
tree7658d5493178763336a48e773bf76f7d38b807d4
parente0d316abc53e6858814ccc83cb42b3e541e72977 (diff)
downloadmate-panel-8c25e1bdd328a8712735c0b00cf4aede7993da1d.tar.bz2
mate-panel-8c25e1bdd328a8712735c0b00cf4aede7993da1d.tar.xz
Suppress the shutdown option in the panel if LTSP_CLIENT is set
-rw-r--r--mate-panel/panel-menu-items.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mate-panel/panel-menu-items.c b/mate-panel/panel-menu-items.c
index e39fa567..bd234de9 100644
--- a/mate-panel/panel-menu-items.c
+++ b/mate-panel/panel-menu-items.c
@@ -1603,7 +1603,7 @@ panel_menu_items_append_lock_logout (GtkWidget *menu)
}
item = panel_menu_items_create_action_item (PANEL_ACTION_SHUTDOWN);
- if (item != NULL) {
+ if (item != NULL && !g_getenv("LTSP_CLIENT")) {
if (!separator_inserted)
add_menu_separator (menu);