aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/ephy-window.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ae9df236c..1b38335c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-28 Christian Persch <chpe@cvs.gnome.org>
+
+ * src/ephy-window.c: (update_actions_sensitivity):
+
+ Disable DownloadLinkAs and SetAsBackground if saving to disk
+ is disabled.
+
2005-01-27 Jean-François Rameau <jframeau@cvs.gnome.org>
* src/ephy-extensions-manager.c: (unload_extension):
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 9b58668db..8f6e2641d 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1058,12 +1058,14 @@ update_actions_sensitivity (EphyWindow *window)
g_object_set (action, "sensitive", save_to_disk, NULL);
action = gtk_action_group_get_action (popups_action_group, "DownloadLink");
g_object_set (action, "sensitive", save_to_disk, NULL);
+ action = gtk_action_group_get_action (popups_action_group, "DownloadLinkAs");
+ g_object_set (action, "sensitive", save_to_disk, NULL);
action = gtk_action_group_get_action (popups_action_group, "SaveBackgroundAs");
g_object_set (action, "sensitive", save_to_disk, NULL);
action = gtk_action_group_get_action (popups_action_group, "SaveImageAs");
g_object_set (action, "sensitive", save_to_disk, NULL);
action = gtk_action_group_get_action (popups_action_group, "SetImageAsBackground");
- g_object_set (action, "sensitive", eel_gconf_key_is_writable (CONF_DESKTOP_BG_PICTURE), NULL);
+ g_object_set (action, "sensitive", save_to_disk && eel_gconf_key_is_writable (CONF_DESKTOP_BG_PICTURE), NULL);
action = gtk_action_group_get_action (action_group, "EditToolbar");
g_object_set (action, "sensitive", ! eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_TOOLBAR_EDITING), NULL);