diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 15:58:17 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 15:58:17 (EDT) |
commit | 3553b2a9a86bc915a45f1208a1b8e049320a6b1f (patch) | |
tree | 5b75d68ce2f393739d507f4084159a77dd3871e7 | |
parent | 1cd10f5657467684349c16216fa8e22efed7deca (diff) | |
download | marquee-3553b2a9a86bc915a45f1208a1b8e049320a6b1f.zip marquee-3553b2a9a86bc915a45f1208a1b8e049320a6b1f.tar.gz marquee-3553b2a9a86bc915a45f1208a1b8e049320a6b1f.tar.bz2 |
mq_web_view_load_uri(): Set scheme methods
Instead of calling rewrite_uri() method and webkit_web_view_load_uri()
directly.
-rw-r--r-- | src/web-view.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/web-view.c b/src/web-view.c index bf8a256..dea0ac5 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -395,14 +395,8 @@ mq_web_view_load_uri(MqWebView *web_view, const gchar *uri) } web_view->uri = g_strdup(uri); - if (g_str_has_prefix(uri, "about:")) { - rw_uri = web_view->scheme_methods->rewrite_uri( - web_view, &web_view->scheme, web_view->uri); - webkit_web_view_load_uri(WEBKIT_WEB_VIEW(web_view), rw_uri); - g_free(rw_uri); - } else { - webkit_web_view_load_uri(WEBKIT_WEB_VIEW(web_view), uri); - } + mq_web_view_scheme_set_methods(&web_view->scheme_methods, + &web_view->scheme, uri); g_object_notify_by_pspec(G_OBJECT(web_view), obj_properties[PROP_DISPLAY_URI]); |