diff options
Diffstat (limited to 'src/ephy-lockdown.c')
-rw-r--r-- | src/ephy-lockdown.c | 5 |
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); } } |