diff options
-rw-r--r-- | src/web-view-schemes/normal.c | 12 | ||||
-rw-r--r-- | src/web-view-schemes/view-source.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c index 16a7361..9b64b5d 100644 --- a/src/web-view-schemes/normal.c +++ b/src/web-view-schemes/normal.c @@ -32,12 +32,6 @@ #include "../tab-page.h" #include "../web-view.h" -static void -finalize(MqWebViewScheme *scheme) -{ - memset(&scheme->normal, 0, sizeof(scheme->normal)); -} - static gboolean match_uri(const gchar *uri) { @@ -46,6 +40,12 @@ match_uri(const gchar *uri) return !uri || !g_str_has_prefix(uri, "view-source:"); } +static void +finalize(MqWebViewScheme *scheme) +{ + memset(&scheme->normal, 0, sizeof(scheme->normal)); +} + static gchar * rewrite_uri(MqWebView G_GNUC_UNUSED *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme, const gchar *uri) diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c index 8f7eff7..7ed062d 100644 --- a/src/web-view-schemes/view-source.c +++ b/src/web-view-schemes/view-source.c @@ -33,18 +33,18 @@ #include "../tab-page.h" #include "../web-view.h" -static void -finalize(MqWebViewScheme *scheme) -{ - memset(&scheme->view_source, 0, sizeof(scheme->view_source)); -} - static gboolean match_uri(const gchar *uri) { return uri && g_str_has_prefix(uri, "view-source:"); } +static void +finalize(MqWebViewScheme *scheme) +{ + memset(&scheme->view_source, 0, sizeof(scheme->view_source)); +} + static gchar * rewrite_uri(MqWebView *web_view, MqWebViewScheme *scheme, const gchar *uri) { |