[gnome-builder] ide-xml-service: disconnect buffer loaded signal



commit f5f8856b1ea0e20fe7532ef2a0f15533cd7953ac
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Thu Mar 9 22:34:46 2017 +0100

    ide-xml-service: disconnect buffer loaded signal

 plugins/xml-pack/ide-xml-service.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-service.c b/plugins/xml-pack/ide-xml-service.c
index 216fa4a..d0c1301 100644
--- a/plugins/xml-pack/ide-xml-service.c
+++ b/plugins/xml-pack/ide-xml-service.c
@@ -144,6 +144,8 @@ ide_xml_service__buffer_loaded_cb (IdeBuffer *buffer,
   g_assert (IDE_IS_FILE (state->ifile));
   g_assert (IDE_IS_BUFFER (state->buffer));
 
+  g_signal_handlers_disconnect_by_func (buffer, ide_xml_service__buffer_loaded_cb, state);
+
   egg_task_cache_get_async (self->analyses,
                             state->ifile,
                             TRUE,


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