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
This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:48 -05:00
parent de90213fd7
commit 5397a1e4ba
+6
View File
@@ -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)