From 25910f0d49c9555c106e3a2c86881363abca1818 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Massimo=20Cor=C3=A0?= Date: Tue, 23 Nov 2010 22:45:14 +0100 Subject: [PATCH] symbol-db: corrected object to receive signal disconnection. --- plugins/symbol-db/plugin.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c index b646e6730..b3f5ad2f9 100644 --- a/plugins/symbol-db/plugin.c +++ b/plugins/symbol-db/plugin.c @@ -2262,8 +2262,14 @@ static gboolean symbol_db_deactivate (AnjutaPlugin *plugin) { SymbolDBPlugin *sdb_plugin; + IAnjutaProjectManager *pm; sdb_plugin = ANJUTA_PLUGIN_SYMBOL_DB (plugin); + + pm = anjuta_shell_get_interface (ANJUTA_PLUGIN (sdb_plugin)->shell, + IAnjutaProjectManager, NULL); + + DEBUG_PRINT ("%s", "SymbolDBPlugin: Dectivating SymbolDBPlugin plugin …"); @@ -2306,13 +2312,13 @@ symbol_db_deactivate (AnjutaPlugin *plugin) g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_project), G_CALLBACK (on_isymbol_manager_prj_scan_end), plugin); - g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_project), + g_signal_handlers_disconnect_by_func (G_OBJECT (pm), G_CALLBACK (on_project_element_added), plugin); - g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_project), + g_signal_handlers_disconnect_by_func (G_OBJECT (pm), G_CALLBACK (on_project_element_removed), plugin); - g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_project), + g_signal_handlers_disconnect_by_func (G_OBJECT (pm), G_CALLBACK (on_project_loaded), plugin); if (sdb_plugin->update_timer) -- 2.11.4.GIT