diff options
author | Milan Crha <mcrha@redhat.com> | 2008-10-13 14:39:37 +0800 |
---|---|---|
committer | Akhil Laddha <lakhil@src.gnome.org> | 2008-10-13 14:39:37 +0800 |
commit | fb6c4634cc504df1d52dd4363cfd4b9ac13db0e9 (patch) | |
tree | 7bb2c61ab6455e4a57e2a4e535d87798c48785fd | |
parent | 05f0815ed402289e17ed6b7cce7a6d9f6c4c28e6 (diff) | |
download | gsoc2013-evolution-fb6c4634cc504df1d52dd4363cfd4b9ac13db0e9.tar gsoc2013-evolution-fb6c4634cc504df1d52dd4363cfd4b9ac13db0e9.tar.gz gsoc2013-evolution-fb6c4634cc504df1d52dd4363cfd4b9ac13db0e9.tar.bz2 gsoc2013-evolution-fb6c4634cc504df1d52dd4363cfd4b9ac13db0e9.tar.lz gsoc2013-evolution-fb6c4634cc504df1d52dd4363cfd4b9ac13db0e9.tar.xz gsoc2013-evolution-fb6c4634cc504df1d52dd4363cfd4b9ac13db0e9.tar.zst gsoc2013-evolution-fb6c4634cc504df1d52dd4363cfd4b9ac13db0e9.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=/branches/gnome-2-24/; revision=36608
-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 0f63a53055..73d6ea83b3 100644 --- a/plugins/itip-formatter/ChangeLog +++ b/plugins/itip-formatter/ChangeLog @@ -25,6 +25,13 @@ License Changes * itip-view.c: +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-01 Milan Crha <mcrha@redhat.com> ** Fix for bug #519491 diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index d7a451371b..abd99787e9 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 */ |