aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-05-29 22:46:18 +0800
committerChristian Persch <chpe@src.gnome.org>2005-05-29 22:46:18 +0800
commit5b39b99462ae5b868bc8aae688255197e850d036 (patch)
treef589e4fd79cffd8cf34dac2291e48dc9afea9a21 /src
parent572d72e3739f3e1086544963a524ce74cffdbb3d (diff)
downloadgsoc2013-epiphany-5b39b99462ae5b868bc8aae688255197e850d036.tar
gsoc2013-epiphany-5b39b99462ae5b868bc8aae688255197e850d036.tar.gz
gsoc2013-epiphany-5b39b99462ae5b868bc8aae688255197e850d036.tar.bz2
gsoc2013-epiphany-5b39b99462ae5b868bc8aae688255197e850d036.tar.lz
gsoc2013-epiphany-5b39b99462ae5b868bc8aae688255197e850d036.tar.xz
gsoc2013-epiphany-5b39b99462ae5b868bc8aae688255197e850d036.tar.zst
gsoc2013-epiphany-5b39b99462ae5b868bc8aae688255197e850d036.zip
Allow ViewSource for XML documents too. Fixes bug #305788.
2005-05-29 Christian Persch <chpe@cvs.gnome.org> * src/ephy-window.c: (sync_tab_document_type): Allow ViewSource for XML documents too. Fixes bug #305788.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 645b5b9bf..871f35eca 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1132,7 +1132,7 @@ sync_tab_document_type (EphyTab *tab,
GtkActionGroup *action_group = priv->action_group;
GtkAction *action;
EphyEmbedDocumentType type;
- gboolean can_find, disable;
+ gboolean can_find, disable, is_image;
if (priv->closing) return;
@@ -1141,12 +1141,13 @@ sync_tab_document_type (EphyTab *tab,
type = ephy_tab_get_document_type (tab);
can_find = (type != EPHY_EMBED_DOCUMENT_IMAGE);
+ is_image = type == EPHY_EMBED_DOCUMENT_IMAGE;
disable = (type != EPHY_EMBED_DOCUMENT_HTML);
action = gtk_action_group_get_action (action_group, "ViewEncoding");
ephy_action_change_sensitivity_flags (action, SENS_FLAG_DOCUMENT, disable);
action = gtk_action_group_get_action (action_group, "ViewPageSource");
- ephy_action_change_sensitivity_flags (action, SENS_FLAG_DOCUMENT, disable);
+ ephy_action_change_sensitivity_flags (action, SENS_FLAG_DOCUMENT, is_image);
action = gtk_action_group_get_action (action_group, "EditFind");
ephy_action_change_sensitivity_flags (action, SENS_FLAG_DOCUMENT, !can_find);
action = gtk_action_group_get_action (action_group, "EditFindNext");