[gnome-calendar/ui-rewrite] edit-dialog: fix wrongly updating	ECalComponent
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-calendar/ui-rewrite] edit-dialog: fix wrongly updating	ECalComponent
- Date: Tue, 28 Oct 2014 18:01:41 +0000 (UTC)
commit 5d10f4f655c4e070599b8af192c0a889c1e634be
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]