[epiphany] location-controller: Fix no-show URIs displaying on Escape
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] location-controller: Fix no-show URIs displaying on Escape
- Date: Wed, 30 Aug 2017 01:38:52 +0000 (UTC)
commit da6b819b9ef60676164e550a530334efb389e156
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 40370cf..3ccbcfe 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]