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:
@@ -328,7 +328,13 @@ gcal_edit_dialog_clear_data (GcalEditDialog *dialog)
|
|||||||
priv = gcal_edit_dialog_get_instance_private (dialog);
|
priv = gcal_edit_dialog_get_instance_private (dialog);
|
||||||
|
|
||||||
/* summary */
|
/* summary */
|
||||||
|
g_signal_handlers_block_by_func (priv->summary_entry,
|
||||||
|
update_summary,
|
||||||
|
dialog);
|
||||||
gtk_entry_set_text (GTK_ENTRY (priv->summary_entry), "");
|
gtk_entry_set_text (GTK_ENTRY (priv->summary_entry), "");
|
||||||
|
g_signal_handlers_unblock_by_func (priv->summary_entry,
|
||||||
|
update_summary,
|
||||||
|
dialog);
|
||||||
|
|
||||||
/* calendar button */
|
/* calendar button */
|
||||||
if (priv->active_iter != NULL)
|
if (priv->active_iter != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user