[gnome-panel] Don't show edit menus item if locked down
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] Don't show edit menus item if locked down
- Date: Mon, 21 Feb 2011 00:59:09 +0000 (UTC)
commit 69c8ba71ada41087cac54b27ac2a7faba3fe73dd
Author: William Jon McCann <jmccann redhat com>
Date: Fri Feb 18 15:59:15 2011 -0500
Don't show edit menus item if locked down
gnome-panel/panel-menu-bar.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/panel-menu-bar.c b/gnome-panel/panel-menu-bar.c
index b4fe130..4f42593 100644
--- a/gnome-panel/panel-menu-bar.c
+++ b/gnome-panel/panel-menu-bar.c
@@ -313,8 +313,9 @@ panel_menu_bar_load (PanelWidget *panel,
return;
}
- if (panel_is_program_in_path ("alacarte") ||
- panel_is_program_in_path ("gmenu-simple-editor")) {
+ if (!panel_lockdown_get_locked_down ()
+ && (panel_is_program_in_path ("alacarte") ||
+ panel_is_program_in_path ("gmenu-simple-editor"))) {
panel_applet_add_callback (menubar->priv->info,
"edit",
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]