[anjuta] symbol-db: Remove buffer update timeout when plugin gets deactivated.
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: Remove buffer update timeout when plugin gets deactivated.
- Date: Sat, 1 Dec 2012 21:23:14 +0000 (UTC)
commit 65cc24cadd1902ea376d99df30929f85feedb7f4
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Fri Nov 23 15:35:28 2012 +0100
symbol-db: Remove buffer update timeout when plugin gets deactivated.
https://bugzilla.gnome.org/show_bug.cgi?id=689054
plugins/symbol-db/plugin.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index f6999cd..a36ca43 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -2324,7 +2324,12 @@ symbol_db_deactivate (AnjutaPlugin *plugin)
g_signal_handlers_disconnect_by_func (G_OBJECT (pm),
G_CALLBACK (on_project_loaded), plugin);
-
+
+ if (sdb_plugin->buf_update_timeout_id)
+ {
+ g_source_remove (sdb_plugin->buf_update_timeout_id);
+ sdb_plugin->buf_update_timeout_id = 0;
+ }
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]