[epiphany/gnome-3-24] location-controller: Fix no-show URIs displaying on Escape
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-24] location-controller: Fix no-show URIs displaying on Escape
- Date: Thu, 31 Aug 2017 01:54:51 +0000 (UTC)
commit d399385548fa8909442622f849bb5013ddb3f683
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 3830a7d..2e0f7ed 100644
--- a/src/ephy-location-controller.c
+++ b/src/ephy-location-controller.c
@@ -227,11 +227,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]