diff options
author | portix <portix@gmx.net> | 2011-07-19 22:55:48 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2011-07-19 22:55:48 +0200 |
commit | 56ee1fc4fc5ee9c37b6a4a50888239fdd8777ede (patch) | |
tree | 4c23c970d3eb73d9fcdae429f1445d03dd2cb723 /src/plugins.c | |
parent | 8d81be3f650d748fc8e0083af9d5be0ef055a08d (diff) | |
download | dwb-56ee1fc4fc5ee9c37b6a4a50888239fdd8777ede.zip |
Fixing to many calls to dwb_plugin_blocker_connect
Diffstat (limited to 'src/plugins.c')
-rw-r--r-- | src/plugins.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/plugins.c b/src/plugins.c index 6afe360d..89e7c147 100644 --- a/src/plugins.c +++ b/src/plugins.c @@ -173,15 +173,8 @@ dwb_plugin_blocker_connect(GList *gl) { VIEW(gl)->status->signals[SIG_PLUGINS_CREATE_WIDGET] = g_signal_connect(WEBVIEW(gl), "create-plugin-widget", G_CALLBACK(dwb_plugins_create_plugin_widget_cb), gl); } -void -dwb_plugin_blocker_init() { - for (GList *l = dwb.state.views; l; l=l->next) { - dwb_plugin_blocker_connect(l); - } -} - -static void -dwb_plugins_disconnect(GList *gl) { +void +dwb_plugin_blocker_disconnect(GList *gl) { for (int i=SIG_PLUGINS_LOAD; i<SIG_PLUGINS_LAST; i++) { if (VIEW(gl)->status->signals[i] > 0) { g_signal_handler_disconnect(WEBVIEW(gl), VIEW(gl)->status->signals[i]); @@ -189,10 +182,3 @@ dwb_plugins_disconnect(GList *gl) { } } } -void -dwb_plugin_blocker_uninit() { - for (GList *l = dwb.state.views; l; l=l->next) { - dwb_plugins_disconnect(l); - dwb_plugins_remove_all(l); - } -} |