[epiphany] ephy-embed: show the overview when using wk2



commit c193a5df3dc970de22c8b0eb773e41a9dc98d877
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Sep 12 11:12:26 2012 +0300

    ephy-embed: show the overview when using wk2
    
    This was neglected before, fix.

 embed/ephy-embed.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 28af642..cd11748 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -288,8 +288,13 @@ load_changed_cb (WebKitWebView *web_view,
                  WebKitLoadEvent load_event,
                  EphyEmbed *embed)
 {
-  if (load_event == WEBKIT_LOAD_COMMITTED)
+  const char *address;
+
+  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);
+  }
 }
 #else
 static void



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