summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-menu-bar.c2
-rw-r--r--mate-panel/panel-menu-button.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/mate-panel/panel-menu-bar.c b/mate-panel/panel-menu-bar.c
index 05e26850..1a2d3ac6 100644
--- a/mate-panel/panel-menu-bar.c
+++ b/mate-panel/panel-menu-bar.c
@@ -288,7 +288,7 @@ static void panel_menu_bar_load(PanelWidget* panel, gboolean locked, int positio
mate_panel_applet_add_callback(menubar->priv->info, "help", GTK_STOCK_HELP, _("_Help"), NULL);
/* Menu editors */
- if (panel_is_program_in_path("mozo") || panel_is_program_in_path("matemenu-simple-editor"))
+ if (!panel_lockdown_get_locked_down () && (panel_is_program_in_path("mozo") || panel_is_program_in_path("matemenu-simple-editor")))
{
mate_panel_applet_add_callback (menubar->priv->info, "edit", NULL, _("_Edit Menus"), NULL);
}
diff --git a/mate-panel/panel-menu-button.c b/mate-panel/panel-menu-button.c
index e37c736d..6a08291a 100644
--- a/mate-panel/panel-menu-button.c
+++ b/mate-panel/panel-menu-button.c
@@ -664,8 +664,9 @@ panel_menu_button_load (const char *menu_path,
mate_panel_applet_add_callback (info, "help", GTK_STOCK_HELP, _("_Help"), NULL);
- if (panel_is_program_in_path ("mozo") ||
- panel_is_program_in_path ("matemenu-simple-editor"))
+ if (!panel_lockdown_get_locked_down () &&
+ (panel_is_program_in_path ("mozo") ||
+ panel_is_program_in_path ("matemenu-simple-editor")))
mate_panel_applet_add_callback (info, "edit", NULL,
_("_Edit Menus"), NULL);