From c78a3dd23bedb9826731708ffea75c19cabfcb47 Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Fri, 10 Nov 2006 14:49:57 +0000 Subject: Also disable the "Open Image" context menu action if the desktop wide 2006-11-10 Wouter Bolsterlee * src/ephy-lockdown.c: (update_window): Also disable the "Open Image" context menu action if the desktop wide "disable save to disk" lockdown key is enabled. Reported on IRC by Gerald E Butler. --- ChangeLog | 7 +++++++ src/ephy-lockdown.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index ac35b8ec5..ec9bd925a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-11-10 Wouter Bolsterlee + + * src/ephy-lockdown.c: (update_window): + Also disable the "Open Image" context menu action if the + desktop wide "disable save to disk" lockdown key is + enabled. Reported on IRC by Gerald E Butler. + 2006-11-10 Wouter Bolsterlee * src/ephy-window.c: diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c index 10753d2af..5b00793a0 100644 --- a/src/ephy-lockdown.c +++ b/src/ephy-lockdown.c @@ -188,6 +188,8 @@ update_window (EphyWindow *window, ephy_action_change_sensitivity_flags (action, LOCKDOWN_FLAG, disabled); action = gtk_action_group_get_action (popups_action_group, "SaveImageAs"); ephy_action_change_sensitivity_flags (action, LOCKDOWN_FLAG, disabled); + action = gtk_action_group_get_action (popups_action_group, "OpenImage"); + ephy_action_change_sensitivity_flags (action, LOCKDOWN_FLAG, disabled); writable = eel_gconf_key_is_writable (CONF_DESKTOP_BG_PICTURE); action = gtk_action_group_get_action (popups_action_group, "SetImageAsBackground"); ephy_action_change_sensitivity_flags (action, LOCKDOWN_FLAG, disabled || !writable); -- cgit v1.2.3