[anjuta] build-basic-autotools: Remove unused idle handler



commit b75f545ce8faabef4496dc3d0192a3731f763b1e
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sat Feb 22 19:30:03 2014 +0100

    build-basic-autotools: Remove unused idle handler

 plugins/build-basic-autotools/plugin.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plugins/build-basic-autotools/plugin.c b/plugins/build-basic-autotools/plugin.c
index f979eab..341c6ae 100644
--- a/plugins/build-basic-autotools/plugin.c
+++ b/plugins/build-basic-autotools/plugin.c
@@ -2449,6 +2449,8 @@ value_added_current_editor (AnjutaPlugin *plugin, const char *name,
        ba_plugin->current_editor_file = ianjuta_file_get_file (IANJUTA_FILE (editor), NULL);
        update_module_ui (ba_plugin);
 
+       if (ba_plugin->update_indicators_idle)
+               g_source_remove (ba_plugin->update_indicators_idle);
        ba_plugin->update_indicators_idle = g_idle_add (on_update_indicators_idle, plugin);
 }
 
@@ -2585,7 +2587,10 @@ deactivate_plugin (AnjutaPlugin *plugin)
 
        /* Remove scheduled idle handler. */
        if (ba_plugin->update_indicators_idle)
+       {
                g_source_remove (ba_plugin->update_indicators_idle);
+               ba_plugin->update_indicators_idle = NULL;
+       }
 
        /* Remove UI */
        anjuta_ui_unmerge (ui, ba_plugin->build_merge_id);
@@ -2613,6 +2618,11 @@ dispose (GObject *obj)
 
        g_object_unref (ba_plugin->settings);
 
+       if (ba_plugin->update_indicators_idle)
+       {
+               g_source_remove (ba_plugin->update_indicators_idle);
+               ba_plugin->update_indicators_idle = NULL;
+       }
        G_OBJECT_CLASS (parent_class)->dispose (obj);
 }
 


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