From b7216fd78d8a52764f44562976b8e6054c00d6c6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 04:59:13 -0400 Subject: MqWebView: Use scheme display_uri() method --- 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]); -- cgit v0.9.1