aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-lockdown.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-06-28 18:20:10 +0800
committerXan Lopez <xan@igalia.com>2012-06-28 18:20:10 +0800
commit9d3ed63884831f2db8956fe9a5d9d02a7291493f (patch)
tree054025480ff632a6f3c349d6440ce0f9d14cb812 /src/ephy-lockdown.c
parentd4dfee4e39e3b4d7cebb6072b5eb478191eedc93 (diff)
downloadgsoc2013-epiphany-9d3ed63884831f2db8956fe9a5d9d02a7291493f.tar
gsoc2013-epiphany-9d3ed63884831f2db8956fe9a5d9d02a7291493f.tar.gz
gsoc2013-epiphany-9d3ed63884831f2db8956fe9a5d9d02a7291493f.tar.bz2
gsoc2013-epiphany-9d3ed63884831f2db8956fe9a5d9d02a7291493f.tar.lz
gsoc2013-epiphany-9d3ed63884831f2db8956fe9a5d9d02a7291493f.tar.xz
gsoc2013-epiphany-9d3ed63884831f2db8956fe9a5d9d02a7291493f.tar.zst
gsoc2013-epiphany-9d3ed63884831f2db8956fe9a5d9d02a7291493f.zip
ephy-web-view: get rid of 'ephy_web_view_get_location'
Nowhere in epiphany were we using the "get the non-toplevel location" feature (which was broken anyway), so I think we should be able to just use get_address everywhere.
Diffstat (limited to 'src/ephy-lockdown.c')
-rw-r--r--src/ephy-lockdown.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c
index 0d0360758..d48f13fa5 100644
--- a/src/ephy-lockdown.c
+++ b/src/ephy-lockdown.c
@@ -67,7 +67,7 @@ arbitrary_url_cb (GSettings *settings,
EphyWindow *window)
{
EphyEmbed *embed;
- char *address;
+ const char *address;
/* Restore the real web page address when disabling entry */
if (g_settings_get_boolean (settings, key))
@@ -77,10 +77,9 @@ arbitrary_url_cb (GSettings *settings,
if (embed == NULL)
return;
- address = ephy_web_view_get_location (ephy_embed_get_web_view (embed), TRUE);
+ address = ephy_web_view_get_address (ephy_embed_get_web_view (embed));
ephy_window_set_location (window, address);
ephy_web_view_set_typed_address (ephy_embed_get_web_view (embed), NULL);
- g_free (address);
}
}