From 5397a1e4ba43debe6bc1230d92ed471c168102bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Tue, 28 Oct 2014 13:53:24 -0400 Subject: [PATCH] edit-dialog: fix wrongly updating ECalComponent GcalEditDialog::clear_data was clearing the summary on the internal ECalComponent instance. Blocking signal handler call allow to clear the widget without clearing the component. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739307 --- src/gcal-edit-dialog.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index 2c77799a..502f6c20 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -328,7 +328,13 @@ gcal_edit_dialog_clear_data (GcalEditDialog *dialog) priv = gcal_edit_dialog_get_instance_private (dialog); /* summary */ + g_signal_handlers_block_by_func (priv->summary_entry, + update_summary, + dialog); gtk_entry_set_text (GTK_ENTRY (priv->summary_entry), ""); + g_signal_handlers_unblock_by_func (priv->summary_entry, + update_summary, + dialog); /* calendar button */ if (priv->active_iter != NULL)