[Xfce4-commits] <midori:master> Always toggle source mode except for source code views

Christian Dywan noreply at xfce.org
Tue Jun 29 07:40:02 CEST 2010


Updating branch refs/heads/master
         to 3336938418dee10e3cd83e53e6dc72875253ebce (commit)
       from 7821d61b5c8a0bde2834457ef38161b1e0cb89ec (commit)

commit 3336938418dee10e3cd83e53e6dc72875253ebce
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jun 29 07:36:45 2010 +0200

    Always toggle source mode except for source code views

 midori/midori-view.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index a22daf1..58c6552 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -2661,7 +2661,10 @@ webkit_web_view_mime_type_decision_cb (GtkWidget*               web_view,
     if (webkit_web_view_can_show_mime_type (WEBKIT_WEB_VIEW (web_view), mime_type))
     {
         #if WEBKIT_CHECK_VERSION (1, 1, 14)
-        gboolean view_source = webkit_web_view_get_view_source_mode (WEBKIT_WEB_VIEW (web_view));
+        gboolean view_source = FALSE;
+        /* Dedicated source code views are always pseudo-blank pages */
+        if (midori_view_is_blank (view))
+            view_source = webkit_web_view_get_view_source_mode (WEBKIT_WEB_VIEW (web_view));
 
         /* Render raw XML, including news feeds, as source */
         if (!view_source && (!strcmp (mime_type, "application/xml")



More information about the Xfce4-commits mailing list