From 2171858d99292f08498b2edbaddc626792e89bff Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 13:39:17 -0400 Subject: mq_web_view_normal_scheme_methods.match_uri(): Move definition --- (limited to 'src/web-view-schemes') 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) -- cgit v0.9.1