evolution r36608 - branches/gnome-2-24/plugins/itip-formatter



Author: lakhil
Date: Mon Oct 13 06:39:37 2008
New Revision: 36608
URL: http://svn.gnome.org/viewvc/evolution?rev=36608&view=rev

Log:
2008-10-13  Milan Crha  <mcrha redhat com>

       ** Fix for bug #550441

       * itip-formatter.c: (view_response_cb):
       Use the proper functions to traverse messages in a folder's summary.



Modified:
   branches/gnome-2-24/plugins/itip-formatter/ChangeLog
   branches/gnome-2-24/plugins/itip-formatter/itip-formatter.c

Modified: branches/gnome-2-24/plugins/itip-formatter/itip-formatter.c
==============================================================================
--- branches/gnome-2-24/plugins/itip-formatter/itip-formatter.c	(original)
+++ branches/gnome-2-24/plugins/itip-formatter/itip-formatter.c	Mon Oct 13 06:39:37 2008
@@ -1787,12 +1787,11 @@
 				tag = camel_message_info_user_tag (mi, "recurrence-key");
 				camel_message_info_free (mi);
 				if (tag) {
-					GPtrArray *summary_array;
-					int i=0;
+					int i = 0, count;
 
-					summary_array = camel_folder_summary_array (pitip->folder->summary);
-					for (i=0; i<summary_array->len; i++) {
-						mi = (CamelMessageInfo *)g_ptr_array_index (summary_array, i);
+					count = camel_folder_summary_count (pitip->folder->summary);
+					for (i = 0; i < count; i++) {
+						mi = camel_folder_summary_index (pitip->folder->summary, i);
 						camel_message_info_ref (mi);
 						if ( camel_message_info_user_tag (mi, "recurrence-key") && g_str_equal (camel_message_info_user_tag (mi, "recurrence-key"), tag)) {
 
@@ -1801,7 +1800,6 @@
 						}
 						camel_message_info_free (mi);
 					}
-					camel_folder_free_summary (pitip->folder, summary_array);
 				}
 			} else {
 				/* Either not a recurring appointment or "apply-to-all" is not selected. So just delete this instance alone */



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