diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 14:48:13 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 14:48:13 (EDT) |
commit | 05e294808c5c50bff54a512ea5d96ac34ec84991 (patch) | |
tree | d30a2db4e0428ad86c88f24eb2da4ce113bd1375 /src | |
parent | f4c0ac4db259925a875ab36a2bdd7c22838514ba (diff) | |
download | marquee-05e294808c5c50bff54a512ea5d96ac34ec84991.zip marquee-05e294808c5c50bff54a512ea5d96ac34ec84991.tar.gz marquee-05e294808c5c50bff54a512ea5d96ac34ec84991.tar.bz2 |
src/web-view-schemes/*.c: Rearrange match_uri() and finalize() method defs
Diffstat (limited to 'src')
-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) { |