diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-29 04:34:23 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-29 04:34:23 +0800 |
commit | 95e9e0b7c14cb72b1032a73fcabcd8077fcc068f (patch) | |
tree | 180146794f712a5e9b6bd1fc15e08ba7bd061a39 | |
parent | 466d145f7682dc4e6dc1ee8b0e7e55f018972704 (diff) | |
download | gsoc2013-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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/ephy-window.c | 4 |
2 files changed, 10 insertions, 1 deletions
@@ -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); |