[gnome-calendar/calendar-editor] source-dialog: don't fire the color signal when it's setting the source



commit 23ff636a52a9f53dea1d623c7909398f82f7ec47
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 9 16:00:02 2015 -0200

    source-dialog: don't fire the color signal when it's setting the source

 src/gcal-source-dialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index fd06158..29003ae 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -341,6 +341,7 @@ gcal_source_dialog_set_source (GcalSourceDialog *dialog,
   default_source = gcal_manager_get_default_source (priv->manager);
 
   /* block signals */
+  g_signal_handlers_block_by_func (priv->calendar_color_button, color_set, dialog);
   g_signal_handlers_block_by_func (priv->name_entry, name_entry_text_changed, dialog);
 
   /* color button */
@@ -361,6 +362,7 @@ gcal_source_dialog_set_source (GcalSourceDialog *dialog,
   gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->headerbar), "");
 
   /* unblock signals */
+  g_signal_handlers_unblock_by_func (priv->calendar_color_button, color_set, dialog);
   g_signal_handlers_unblock_by_func (priv->name_entry, name_entry_text_changed, dialog);
 
   g_object_unref (default_source);


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