[anjuta] symbol-db: corrected object to receive signal disconnection.
- From: Massimo Cora' <mcora src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: corrected object to receive signal disconnection.
- Date: Tue, 23 Nov 2010 21:47:02 +0000 (UTC)
commit 25910f0d49c9555c106e3a2c86881363abca1818
Author: Massimo Corà <mcora src gnome org>
Date: Tue Nov 23 22:45:14 2010 +0100
symbol-db: corrected object to receive signal disconnection.
plugins/symbol-db/plugin.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index b646e67..b3f5ad2 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]