updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / gnome-panel-ubuntu / 85_disable_shutdown_on_ltsp.patch
blob6f3e748e2912ac24448df901b60528a0355fe974
1 Description: Suppress the shutdown option in the panel if LTSP_CLIENT is set
2 Bug: https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/282669
4 Index: gnome-panel-2.30.0/gnome-panel/panel-menu-items.c
5 ===================================================================
6 --- gnome-panel-2.30.0.orig/gnome-panel/panel-menu-items.c 2010-06-03 13:58:17.316446305 +1000
7 +++ gnome-panel-2.30.0/gnome-panel/panel-menu-items.c 2010-06-03 13:58:18.496449211 +1000
8 @@ -1706,7 +1706,7 @@
11 item = panel_menu_items_create_action_item (PANEL_ACTION_SHUTDOWN);
12 - if (item != NULL) {
13 + if (item != NULL && !g_getenv("LTSP_CLIENT")){
14 if (!separator_inserted)
15 separator = add_menu_separator (menu);