summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 22:48:27 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 22:48:27 (EDT)
commitbecc7cf16cccabffd1eff236956151a02c156c1b (patch)
tree0e95f10122ca91f63ce94f25c5a8b12ba720a571 /src
parenta30c327b388c6374dcac0b4e4a299e8b58e5fa66 (diff)
downloadmarquee-becc7cf16cccabffd1eff236956151a02c156c1b.zip
marquee-becc7cf16cccabffd1eff236956151a02c156c1b.tar.gz
marquee-becc7cf16cccabffd1eff236956151a02c156c1b.tar.bz2
MqWebViewScheme: Delete ready_cb member
And delete mq_web_view_scheme_connect_ready_callback() and uses of MqWebViewScheme.ready_cb.
Diffstat (limited to 'src')
-rw-r--r--src/web-view-schemes/methods.c7
-rw-r--r--src/web-view-schemes/normal.c5
-rw-r--r--src/web-view-schemes/schemes.h5
-rw-r--r--src/web-view-schemes/view-source.c2
4 files changed, 2 insertions, 17 deletions
diff --git a/src/web-view-schemes/methods.c b/src/web-view-schemes/methods.c
index a0e4aa1..828ac7a 100644
--- a/src/web-view-schemes/methods.c
+++ b/src/web-view-schemes/methods.c
@@ -21,13 +21,6 @@
#include "schemes.h"
-void
-mq_web_view_scheme_connect_ready_callback(MqWebViewScheme *scheme,
- void (*ready_cb)(MqWebViewScheme *, MqWebView *))
-{
- scheme->ready_cb = ready_cb;
-}
-
static gboolean
check_and_set_methods(MqWebViewSchemeMethods **methods,
MqWebViewScheme *scheme, const gchar *uri,
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c
index 7cecdab..5641a9c 100644
--- a/src/web-view-schemes/normal.c
+++ b/src/web-view-schemes/normal.c
@@ -41,10 +41,9 @@ match_uri(const gchar *uri)
}
static void
-initialize(MqWebView *web_view, MqWebViewScheme *scheme,
- const gchar G_GNUC_UNUSED *uri)
+initialize(MqWebView G_GNUC_UNUSED *web_view,
+ MqWebViewScheme G_GNUC_UNUSED *scheme, const gchar G_GNUC_UNUSED *uri)
{
- scheme->ready_cb(scheme, web_view);
}
static void
diff --git a/src/web-view-schemes/schemes.h b/src/web-view-schemes/schemes.h
index e3fc7c9..33f8e50 100644
--- a/src/web-view-schemes/schemes.h
+++ b/src/web-view-schemes/schemes.h
@@ -47,7 +47,6 @@ struct _MqWebViewScheme {
MqWebViewNormalScheme normal;
MqWebViewViewSourceScheme view_source;
};
- void (*ready_cb)(MqWebViewScheme *, MqWebView *);
};
typedef struct {
@@ -66,10 +65,6 @@ extern MqWebViewSchemeMethods mq_web_view_normal_scheme_methods;
extern MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods;
void
-mq_web_view_scheme_connect_ready_callback(MqWebViewScheme *scheme,
- void (*ready_cb)(MqWebViewScheme *, MqWebView *));
-
-void
mq_web_view_scheme_set_methods(MqWebViewSchemeMethods **methods,
MqWebViewScheme *scheme, const gchar *uri);
diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c
index d87ef53..f44db97 100644
--- a/src/web-view-schemes/view-source.c
+++ b/src/web-view-schemes/view-source.c
@@ -58,8 +58,6 @@ initialize(MqWebView *web_view, MqWebViewScheme *scheme, const gchar *uri)
/* Get origin tab's URI and data. */
scheme->view_source.uri = mq_web_view_get_uri(
mq_tab_page_get_web_view(origin_tab));
-
- scheme->ready_cb(scheme, web_view);
}
static void