summaryrefslogtreecommitdiffstats
path: root/src/web-view-schemes
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 13:39:17 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 13:39:17 (EDT)
commit2171858d99292f08498b2edbaddc626792e89bff (patch)
treee39cd307012f3d9c56ea51269aca32fc68f4c046 /src/web-view-schemes
parentd428363c809a0c127a8673cc79509b0e40c735b4 (diff)
downloadmarquee-2171858d99292f08498b2edbaddc626792e89bff.zip
marquee-2171858d99292f08498b2edbaddc626792e89bff.tar.gz
marquee-2171858d99292f08498b2edbaddc626792e89bff.tar.bz2
mq_web_view_normal_scheme_methods.match_uri(): Move definition
Diffstat (limited to 'src/web-view-schemes')
-rw-r--r--src/web-view-schemes/normal.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c
index b206397..d0db097 100644
--- a/src/web-view-schemes/normal.c
+++ b/src/web-view-schemes/normal.c
@@ -38,6 +38,14 @@ finalize(MqWebViewScheme *scheme)
memset(&scheme->normal, 0, sizeof(scheme->normal));
}
+static gboolean
+match_uri(const gchar *uri)
+{
+ /* This is a catch-all scheme handler, so match any schemes not handled
+ * by another handler. */
+ return !g_str_has_prefix(uri, "view-source:");
+}
+
static gchar *
rewrite_uri(MqWebView G_GNUC_UNUSED *web_view,
MqWebViewScheme G_GNUC_UNUSED *scheme, const gchar *uri)
@@ -528,14 +536,6 @@ save_html_replace_cb(GFile *file, GAsyncResult *result, guchar *data)
g_free(data);
}
-static gboolean
-match_uri(const gchar *uri)
-{
- /* This is a catch-all scheme handler, so match any schemes not handled
- * by another handler. */
- return !g_str_has_prefix(uri, "view-source:");
-}
-
static void
save_html_get_data_cb(WebKitWebResource *resource, GAsyncResult *result,
MqWebView *web_view)