summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 16:03:39 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 16:03:39 (EDT)
commitf9e5b5dc52ae64dbb9c8f1b960641a60395de189 (patch)
tree0fb45225f12747fc2f7aa8701aeced1433b5e24f
parent3553b2a9a86bc915a45f1208a1b8e049320a6b1f (diff)
downloadmarquee-f9e5b5dc52ae64dbb9c8f1b960641a60395de189.zip
marquee-f9e5b5dc52ae64dbb9c8f1b960641a60395de189.tar.gz
marquee-f9e5b5dc52ae64dbb9c8f1b960641a60395de189.tar.bz2
mq_web_view_load_uri(): Call rewrite_uri() method after setting methods
-rw-r--r--src/web-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web-view.c b/src/web-view.c
index dea0ac5..85cfc0d 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -380,7 +380,6 @@ mq_web_view_get_uri(MqWebView *web_view)
void
mq_web_view_load_uri(MqWebView *web_view, const gchar *uri)
{
- gchar *rw_uri;
mq_web_view_scheme_set_methods(&web_view->scheme_methods,
&web_view->scheme, uri);
@@ -393,10 +392,11 @@ mq_web_view_load_uri(MqWebView *web_view, const gchar *uri)
if (web_view->uri) {
g_free(web_view->uri);
}
- web_view->uri = g_strdup(uri);
mq_web_view_scheme_set_methods(&web_view->scheme_methods,
&web_view->scheme, uri);
+ web_view->uri = web_view->scheme_methods->rewrite_uri(
+ web_view, &web_view->scheme, uri);
g_object_notify_by_pspec(G_OBJECT(web_view),
obj_properties[PROP_DISPLAY_URI]);