[epiphany/dazzle] location-controller: Fix no-show URIs displaying on Escape
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/dazzle] location-controller: Fix no-show URIs displaying on Escape
- Date: Wed, 30 Aug 2017 01:38:06 +0000 (UTC)
commit 6e2735114cd0250c1a7e54f46463a059632b652d
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Tue Aug 29 20:37:18 2017 -0500
location-controller: Fix no-show URIs displaying on Escape
src/ephy-location-controller.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-location-controller.c b/src/ephy-location-controller.c
index 9b739e8..a9619d5 100644
--- a/src/ephy-location-controller.c
+++ b/src/ephy-location-controller.c
@@ -202,11 +202,12 @@ get_location_cb (EphyLocationEntry *entry,
EphyLocationController *controller)
{
EphyEmbed *embed;
+ const char *address;
- embed = ephy_embed_container_get_active_child
- (EPHY_EMBED_CONTAINER (controller->window));
+ embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (controller->window));
+ address = ephy_web_view_get_address (ephy_embed_get_web_view (embed));
- return g_strdup (ephy_web_view_get_address (ephy_embed_get_web_view (embed)));
+ return ephy_embed_utils_is_no_show_address (address) ? NULL : g_strdup (address);
}
static char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]