aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-29 04:35:09 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-29 04:35:09 +0800
commit2659d38477793b9272b3e8f90cc045f4ef6ba451 (patch)
tree53cb422c9a11b0ddbbab8bd824fec969f0624dd0 /src
parent36bfe584c10ea9a05377523765ed949b6c3a49a5 (diff)
downloadgsoc2013-epiphany-2659d38477793b9272b3e8f90cc045f4ef6ba451.tar
gsoc2013-epiphany-2659d38477793b9272b3e8f90cc045f4ef6ba451.tar.gz
gsoc2013-epiphany-2659d38477793b9272b3e8f90cc045f4ef6ba451.tar.bz2
gsoc2013-epiphany-2659d38477793b9272b3e8f90cc045f4ef6ba451.tar.lz
gsoc2013-epiphany-2659d38477793b9272b3e8f90cc045f4ef6ba451.tar.xz
gsoc2013-epiphany-2659d38477793b9272b3e8f90cc045f4ef6ba451.tar.zst
gsoc2013-epiphany-2659d38477793b9272b3e8f90cc045f4ef6ba451.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 73a5de71f..a64997cc0 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1074,12 +1074,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);