[gnome-calendar] edit-dialog: fix wrongly updating ECalComponent



commit 5397a1e4ba43debe6bc1230d92ed471c168102bb
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Tue Oct 28 13:53:24 2014 -0400

    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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 2c77799..502f6c2 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)


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