[empathy: 25/80] Block the callback when clearing the store



commit 30632ed84b27b97089e709688ddbc7f6fb0db69c
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Mon Apr 25 16:04:48 2011 +0100

    Block the callback when clearing the store

 libempathy-gtk/empathy-log-window.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 6b1cde8..7a9af57 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -2522,7 +2522,16 @@ log_window_chats_get_messages (EmpathyLogWindow *window,
     {
       if (force_get_dates)
         {
+          g_signal_handlers_block_by_func (selection,
+              log_window_when_changed_cb,
+              window);
+
           gtk_list_store_clear (store);
+
+          g_signal_handlers_unblock_by_func (selection,
+              log_window_when_changed_cb,
+              window);
+
           populate_dates_from_search_hits (accounts, targets);
         }
       else



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