[gedit-plugins] Fix bug #580594



commit cbfceab5672f7d32237791aa7605e3b969cde4a9
Author: Paolo Borelli <porelli gnome org>
Date:   Fri May 1 21:19:06 2009 +0200

    Fix bug #580594
    
    Properly disconnect the signal handler when deactivating the plugin
---
 plugins/drawspaces/gedit-drawspaces-plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/drawspaces/gedit-drawspaces-plugin.c b/plugins/drawspaces/gedit-drawspaces-plugin.c
index 7e16436..fc142de 100644
--- a/plugins/drawspaces/gedit-drawspaces-plugin.c
+++ b/plugins/drawspaces/gedit-drawspaces-plugin.c
@@ -400,7 +400,7 @@ impl_deactivate	(GeditPlugin *plugin,
 	ds_plugin->priv->flags = 0;
 	draw_spaces (ds_plugin);
 	
-	g_signal_handlers_disconnect_by_func (window, tab_added_cb, NULL);
+	g_signal_handlers_disconnect_by_func (window, tab_added_cb, ds_plugin);
 	
 	gtk_ui_manager_remove_ui (manager, data->ui_id);
 	gtk_ui_manager_remove_action_group (manager, data->action_group);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]