From 1f9fc79ef8f6a5391d51b4970b8d4c367f8edc52 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 13 Oct 2008 06:18:15 +0000 Subject: ** Fix for bug #550441 2008-10-13 Milan Crha ** Fix for bug #550441 * itip-formatter.c: (view_response_cb): Use the proper functions to traverse messages in a folder's summary. svn path=/trunk/; revision=36607 --- plugins/itip-formatter/ChangeLog | 7 +++++++ plugins/itip-formatter/itip-formatter.c | 10 ++++------ 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'plugins/itip-formatter') diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog index 886df7ea7c..d3486b6f4c 100644 --- a/plugins/itip-formatter/ChangeLog +++ b/plugins/itip-formatter/ChangeLog @@ -1,3 +1,10 @@ +2008-10-13 Milan Crha + + ** Fix for bug #550441 + + * itip-formatter.c: (view_response_cb): + Use the proper functions to traverse messages in a folder's summary. + 2008-10-10 Patrick Ohly ** #541121: improved itip formatter: allow replying to forwarded diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 35a1dc683f..b606b7840b 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -1787,12 +1787,11 @@ view_response_cb (GtkWidget *widget, ItipViewResponse response, gpointer data) 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; ilen; 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 @@ view_response_cb (GtkWidget *widget, ItipViewResponse response, gpointer data) } 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 */ -- cgit