aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-29 04:34:23 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-29 04:34:23 +0800
commit95e9e0b7c14cb72b1032a73fcabcd8077fcc068f (patch)
tree180146794f712a5e9b6bd1fc15e08ba7bd061a39 /src
parent466d145f7682dc4e6dc1ee8b0e7e55f018972704 (diff)
downloadgsoc2013-epiphany-95e9e0b7c14cb72b1032a73fcabcd8077fcc068f.tar
gsoc2013-epiphany-95e9e0b7c14cb72b1032a73fcabcd8077fcc068f.tar.gz
gsoc2013-epiphany-95e9e0b7c14cb72b1032a73fcabcd8077fcc068f.tar.bz2
gsoc2013-epiphany-95e9e0b7c14cb72b1032a73fcabcd8077fcc068f.tar.lz
gsoc2013-epiphany-95e9e0b7c14cb72b1032a73fcabcd8077fcc068f.tar.xz
gsoc2013-epiphany-95e9e0b7c14cb72b1032a73fcabcd8077fcc068f.tar.zst
gsoc2013-epiphany-95e9e0b7c14cb72b1032a73fcabcd8077fcc068f.zip
Disable DownloadLinkAs and SetAsBackground if saving to disk is disabled.
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.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c4
1 files changed, 3 insertions, 1 deletions
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);