aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-09-03 05:24:46 +0800
committerXan Lopez <xan@igalia.com>2012-09-03 05:24:46 +0800
commiteedef109f733889645ec93317629d795fdfa55dd (patch)
treecad4c22d9dea7d691dea7873650e0e278972bb33
parent1a7cc74fffb2631b8bee4192cfac4ecf1b37830f (diff)
downloadgsoc2013-epiphany-eedef109f733889645ec93317629d795fdfa55dd.tar
gsoc2013-epiphany-eedef109f733889645ec93317629d795fdfa55dd.tar.gz
gsoc2013-epiphany-eedef109f733889645ec93317629d795fdfa55dd.tar.bz2
gsoc2013-epiphany-eedef109f733889645ec93317629d795fdfa55dd.tar.lz
gsoc2013-epiphany-eedef109f733889645ec93317629d795fdfa55dd.tar.xz
gsoc2013-epiphany-eedef109f733889645ec93317629d795fdfa55dd.tar.zst
gsoc2013-epiphany-eedef109f733889645ec93317629d795fdfa55dd.zip
ephy-shell: consider the overview as a blank page
We were only considering about:blank, but about:overview should be assumed to be "blank" as far as replacing it with actual pages is concerned.
-rw-r--r--src/ephy-shell.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 56e0ed20b..5eb3dfc5e 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -754,8 +754,9 @@ ephy_shell_new_tab_full (EphyShell *shell,
/* If the active embed is blank, use that to open the url and jump to it */
embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));
if (embed != NULL) {
- if (ephy_web_view_get_is_blank (ephy_embed_get_web_view (embed)) &&
- ephy_web_view_is_loading (ephy_embed_get_web_view (embed)) == FALSE) {
+ EphyWebView *view = ephy_embed_get_web_view (embed);
+ if ((ephy_web_view_get_is_blank (view) || ephy_embed_get_overview_mode (embed)) &&
+ ephy_web_view_is_loading (view) == FALSE) {
active_is_blank = TRUE;
}
}