aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--data/default-prefs-mozilla.js3
-rw-r--r--src/ephy-window.c5
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a4bc7723d..2b9e51601 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2005-05-29 Jean-François Rameau <jframeau@cvs.gnome.org>
* lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file):
diff --git a/data/default-prefs-mozilla.js b/data/default-prefs-mozilla.js
index e69de29bb..80afb4e40 100644
--- a/data/default-prefs-mozilla.js
+++ b/data/default-prefs-mozilla.js
@@ -0,0 +1,3 @@
+// enable typeahead find
+pref("accessibility.typeaheadfind", true);
+
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");