From 5c693f3e5aa2bf944b23a8310fa4c4c078ca776d Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 9 Feb 2015 16:00:02 -0200 Subject: [PATCH] source-dialog: don't fire the color signal when it's setting the source --- src/gcal-source-dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index fd061589..29003aec 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);