summaryrefslogtreecommitdiffstats
path: root/src/web-view-schemes/normal.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 12:51:31 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 12:51:31 (EDT)
commitc7aef4e0b8290c83c4b086bc87d76e86d48dae14 (patch)
tree95450413ad8877d9298cb856dedf2bea88cfe802 /src/web-view-schemes/normal.c
parentc2740ed57eec6dc1b54c8a5fd02271f4ccb010c7 (diff)
downloadmarquee-c7aef4e0b8290c83c4b086bc87d76e86d48dae14.zip
marquee-c7aef4e0b8290c83c4b086bc87d76e86d48dae14.tar.gz
marquee-c7aef4e0b8290c83c4b086bc87d76e86d48dae14.tar.bz2
mq_web_view_*_scheme_methods->finalize(): New methods
Diffstat (limited to 'src/web-view-schemes/normal.c')
-rw-r--r--src/web-view-schemes/normal.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c
index 034a363..4da54cc 100644
--- a/src/web-view-schemes/normal.c
+++ b/src/web-view-schemes/normal.c
@@ -32,6 +32,12 @@
#include "../tab-page.h"
#include "../web-view.h"
+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)
@@ -764,6 +770,7 @@ save_file(MqWebView *web_view, MqWebViewScheme *scheme)
}
const MqWebViewSchemeMethods mq_web_view_normal_scheme_methods = {
+ .finalize = finalize,
.rewrite_uri = rewrite_uri,
.display_uri = display_uri,
.context_menu = context_menu,