commit b69b39dc7583d19411e8cdbe63ffa78e6a5f0d9c
Author: phantomjinx <p.g.richard...@phantomjinx.co.uk>
Date:   Sat Aug 27 12:55:46 2011 +0100

    Cover display not disconnecting on deactivate
    
    * Seems that deactivating the coverart display is not disconnecting the
      signal handlers. This is due to incorrect data paramter passed to
      disconnect function.

 plugins/cover_display/plugin.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/cover_display/plugin.c b/plugins/cover_display/plugin.c
index 9e97e41..60b0cac 100644
--- a/plugins/cover_display/plugin.c
+++ b/plugins/cover_display/plugin.c
@@ -113,11 +113,11 @@ static gboolean deactivate_plugin(AnjutaPlugin *plugin) {
 
     coverart_block_change(TRUE);
 
-    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_update_cb), plugin);
-    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_track_removed_cb), plugin);
-    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_set_tracks_cb), plugin);
-    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_track_updated_cb), plugin);
-    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_track_added_cb), plugin);
+    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_update_cb), NULL);
+    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_track_removed_cb), NULL);
+    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_set_tracks_cb), NULL);
+    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_track_updated_cb), NULL);
+    g_signal_handlers_disconnect_by_func(plugin->shell, G_CALLBACK 
(coverart_display_track_added_cb), NULL);
 
     cover_display_plugin = (CoverDisplayPlugin*) plugin;
     ui = anjuta_shell_get_ui(plugin->shell, NULL);

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to