summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 04:59:13 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 04:59:13 (EDT)
commitb7216fd78d8a52764f44562976b8e6054c00d6c6 (patch)
tree426bfaafbcefde666d793f35ac3fc35a98c9f4b2
parent5f88c345c431261d5ec53a5429e92826c8b7124d (diff)
downloadmarquee-b7216fd78d8a52764f44562976b8e6054c00d6c6.zip
marquee-b7216fd78d8a52764f44562976b8e6054c00d6c6.tar.gz
marquee-b7216fd78d8a52764f44562976b8e6054c00d6c6.tar.bz2
MqWebView: Use scheme display_uri() method
-rw-r--r--src/web-view.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/web-view.c b/src/web-view.c
index b5a2283..3fab3d2 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -79,12 +79,8 @@ uri_cb(MqWebView *web_view, GParamSpec G_GNUC_UNUSED *param_spec)
uri = webkit_web_view_get_uri(WEBKIT_WEB_VIEW(web_view));
- if (g_str_has_prefix(uri, "mq-about:")) {
- web_view->uri = g_strconcat("about:", uri + strlen("mq-about:"),
- NULL);
- } else {
- web_view->uri = g_strdup(uri);
- }
+ web_view->uri = web_view->scheme_methods->display_uri(&web_view->scheme,
+ uri);
g_object_notify_by_pspec(G_OBJECT(web_view),
obj_properties[PROP_DISPLAY_URI]);