[devhelp] Don't open about:blank with gtk_show_uri.



commit be8cff0e5e4fbdcdfd8a1e7e762a1e4bdefa59cc
Author: Yanko Kaneti <yaneti declera com>
Date:   Fri Sep 18 14:19:36 2009 +0300

    Don't open about:blank with gtk_show_uri.

 src/dh-window.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index ba3ff0a..e119c1d 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -923,16 +923,16 @@ window_web_view_navigation_policy_decision_requested (WebKitWebView
                 return TRUE;
         }
 
+        if (strcmp (uri, "about:blank") == 0) {
+                return FALSE;
+        }
+
         if (strncmp (uri, "file://", 7) != 0) {
                 webkit_web_policy_decision_ignore (policy_decision);
                 gtk_show_uri (NULL, uri, GDK_CURRENT_TIME, NULL);
                 return TRUE;
         }
 
-        if (strcmp (uri, "about:blank") == 0) {
-                return FALSE;
-        }
-
         if (web_view == window_get_active_web_view (window)) {
                 dh_book_tree_select_uri (DH_BOOK_TREE (priv->book_tree), uri);
                 window_check_history (window, web_view);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]