[epiphany] ephy-enbed: Check URI is ephy-about:overview instead of about:overview



commit a5ae9c3e3ade32d7dafbb4ec841eb9197b911e0d
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Fri Jan 11 12:57:00 2013 +0100

    ephy-enbed: Check URI is ephy-about:overview instead of about:overview
    
    To set the overview mode or not because ephy_web_view_get_address()
    returns the internal URI, not the one exposed to the UI.

 embed/ephy-embed.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index b70bd4d..e12923b 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -295,7 +295,7 @@ load_changed_cb (WebKitWebView *web_view,
   if (load_event == WEBKIT_LOAD_COMMITTED) {
     ephy_embed_destroy_top_widgets (embed);
     address = ephy_web_view_get_address (EPHY_WEB_VIEW (web_view));
-    ephy_embed_set_overview_mode (embed, strcmp (address, "about:overview") == 0);
+    ephy_embed_set_overview_mode (embed, strcmp (address, "ephy-about:overview") == 0);
   }
 }
 #else
@@ -310,7 +310,7 @@ load_status_changed_cb (WebKitWebView *web_view,
   if (status == WEBKIT_LOAD_COMMITTED) {
     ephy_embed_destroy_top_widgets (embed);
     address = ephy_web_view_get_address (EPHY_WEB_VIEW (web_view));
-    ephy_embed_set_overview_mode (embed, strcmp (address, "about:overview") == 0);
+    ephy_embed_set_overview_mode (embed, strcmp (address, "ephy-about:overview") == 0);
   }
 }
 #endif



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