diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2013-01-11 19:57:00 +0800 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2013-01-11 19:57:00 +0800 |
commit | a5ae9c3e3ade32d7dafbb4ec841eb9197b911e0d (patch) | |
tree | 348443b3c2f4cb939498add7c15af327080a0cd5 /embed | |
parent | e0024b7841b206eb5fa6bdb553ffe7b8e56cf133 (diff) | |
download | gsoc2013-epiphany-a5ae9c3e3ade32d7dafbb4ec841eb9197b911e0d.tar.gz gsoc2013-epiphany-a5ae9c3e3ade32d7dafbb4ec841eb9197b911e0d.tar.zst gsoc2013-epiphany-a5ae9c3e3ade32d7dafbb4ec841eb9197b911e0d.zip |
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.
Diffstat (limited to 'embed')
-rw-r--r-- | 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 b70bd4d41..e12923b04 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 |