[anjuta] symbol-db: disconnected signals



commit 7d095997cf8534aa586ecb6005d75ffde8cae734
Author: Massimo Corà <mcora src gnome org>
Date:   Sat Aug 1 11:15:18 2009 +0200

    symbol-db: disconnected signals
    
    Disconnected interface signals.

 plugins/symbol-db/plugin.c |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index 09f70b7..ffcfa5f 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -2575,6 +2575,33 @@ symbol_db_deactivate (AnjutaPlugin *plugin)
 	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbs),
 										  on_scan_end_manager,
 										  plugin);
+
+	/* disconnect the interface ones */
+	/* connect signals for interface to receive them */
+	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_globals),
+				G_CALLBACK (on_isymbol_manager_sys_symbol_inserted), plugin);
+
+	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_globals),
+				G_CALLBACK (on_isymbol_manager_sys_symbol_updated), plugin);
+
+	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_globals),
+				G_CALLBACK (on_isymbol_manager_sys_symbol_removed), plugin);
+
+	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_globals),
+				G_CALLBACK (on_isymbol_manager_sys_scan_end), plugin);
+	
+	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_project),
+				G_CALLBACK (on_isymbol_manager_prj_symbol_inserted), plugin);
+
+	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_project), 
+				G_CALLBACK (on_isymbol_manager_prj_symbol_updated), plugin);
+
+	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_project),
+				G_CALLBACK (on_isymbol_manager_prj_symbol_inserted), plugin);
+	
+	g_signal_handlers_disconnect_by_func (G_OBJECT (sdb_plugin->sdbe_project),
+				G_CALLBACK (on_isymbol_manager_prj_scan_end), plugin);
+	
 	if (sdb_plugin->update_timer)
 	{
 		g_timer_destroy (sdb_plugin->update_timer);



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