aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-08-23 23:51:45 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-09-01 02:34:01 +0800
commit3005b30e3f657618f506eac9320cf54b86b9c0ed (patch)
tree249c8c730d1f35e1a14dba542d4696f765580a47
parent09b60aea4d1ad8349e18b17cfb3f7ca5d68498cf (diff)
downloadgsoc2013-epiphany-3005b30e3f657618f506eac9320cf54b86b9c0ed.tar.gz
gsoc2013-epiphany-3005b30e3f657618f506eac9320cf54b86b9c0ed.tar.zst
gsoc2013-epiphany-3005b30e3f657618f506eac9320cf54b86b9c0ed.zip
Add about:overview to actually go to overview mode
-rw-r--r--embed/ephy-embed.c6
-rw-r--r--embed/ephy-web-view.c4
-rw-r--r--src/ephy-home-action.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 1283acbc1..28af642b8 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -298,9 +298,13 @@ load_status_changed_cb (WebKitWebView *web_view,
EphyEmbed *embed)
{
WebKitLoadStatus status = webkit_web_view_get_load_status (web_view);
+ const char *address;
- if (status == WEBKIT_LOAD_COMMITTED)
+ 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);
+ }
}
#endif
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index bcef40507..6a307e43c 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -4078,7 +4078,7 @@ ephy_web_view_save (EphyWebView *view, const char *uri)
* ephy_web_view_load_homepage:
* @view: an #EphyWebView
*
- * Loads the homepage, which is hardcoded to be "about:blank"
+ * Loads the homepage, which is hardcoded to be "about:overview"
*
**/
void
@@ -4088,7 +4088,7 @@ ephy_web_view_load_homepage (EphyWebView *view)
ephy_web_view_set_visit_type (view,
EPHY_PAGE_VISIT_HOMEPAGE);
- ephy_web_view_load_url (view, "about:blank");
+ ephy_web_view_load_url (view, "about:overview");
}
/**
diff --git a/src/ephy-home-action.c b/src/ephy-home-action.c
index bd0b24131..f6d03491b 100644
--- a/src/ephy-home-action.c
+++ b/src/ephy-home-action.c
@@ -56,7 +56,7 @@ ephy_home_action_activate (GtkAction *action)
g_object_get (G_OBJECT (action), "name", &action_name, NULL);
- action_name_association (action, action_name, "about:blank");
+ action_name_association (action, action_name, "about:overview");
g_free (action_name);
}