summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)