diff options
author | Milan Crha <mcrha@redhat.com> | 2008-10-13 14:18:15 +0800 |
---|---|---|
committer | Akhil Laddha <lakhil@src.gnome.org> | 2008-10-13 14:18:15 +0800 |
commit | 1f9fc79ef8f6a5391d51b4970b8d4c367f8edc52 (patch) | |
tree | fbf69eb7886805477a187ea01064b4702eb52675 /plugins/itip-formatter | |
parent | f2bbac0d5fb3e3354e29c815c8d8ed05a6a70071 (diff) | |
download | gsoc2013-evolution-1f9fc79ef8f6a5391d51b4970b8d4c367f8edc52.tar.gz gsoc2013-evolution-1f9fc79ef8f6a5391d51b4970b8d4c367f8edc52.tar.zst gsoc2013-evolution-1f9fc79ef8f6a5391d51b4970b8d4c367f8edc52.zip |
** Fix for bug #550441
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.
svn path=/trunk/; revision=36607
Diffstat (limited to 'plugins/itip-formatter')
-rw-r--r-- | plugins/itip-formatter/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 10 |
2 files changed, 11 insertions, 6 deletions
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 <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. + 2008-10-10 Patrick Ohly <pohly@ecld0pohly> ** #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; 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 @@ 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 */ |