evolution r36769 - in trunk/calendar: . gui/dialogs



Author: msuman
Date: Mon Nov 10 10:29:30 2008
New Revision: 36769
URL: http://svn.gnome.org/viewvc/evolution?rev=36769&view=rev

Log:
Fix for bug #443190 (bugzilla.novell.com) - Block signals from attachment-bar while still filling the widgets.

Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/dialogs/comp-editor.c

Modified: trunk/calendar/gui/dialogs/comp-editor.c
==============================================================================
--- trunk/calendar/gui/dialogs/comp-editor.c	(original)
+++ trunk/calendar/gui/dialogs/comp-editor.c	Mon Nov 10 10:29:30 2008
@@ -2903,7 +2903,9 @@
 	if (e_cal_component_has_attachments (priv->comp)) {
 		GSList *attachment_list = NULL;
 		e_cal_component_get_attachment_list (priv->comp, &attachment_list);
+		g_signal_handlers_block_by_func(priv->attachment_bar, G_CALLBACK (attachment_bar_changed_cb), editor);
 		set_attachment_list (editor, attachment_list);
+		g_signal_handlers_unblock_by_func(priv->attachment_bar, G_CALLBACK (attachment_bar_changed_cb), editor);
 		g_slist_foreach (attachment_list, (GFunc)g_free, NULL);
 		g_slist_free (attachment_list);
 	}
@@ -2916,7 +2918,6 @@
 real_edit_comp (CompEditor *editor, ECalComponent *comp)
 {
 	CompEditorPrivate *priv;
-	const char *uid;
 
 	g_return_if_fail (IS_COMP_EDITOR (editor));
 
@@ -2935,7 +2936,6 @@
  	priv->warned = FALSE;
 
 	update_window_border (editor, NULL);
-	e_cal_component_get_uid (comp, &uid);
 
 	fill_widgets (editor);
 



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