aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-03-07 20:53:19 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-03-07 20:53:19 +0800
commit43d118565480985640afeeffb8e6902852eb0db3 (patch)
tree6e3b0b6d93df15787bc51520614bd11a5a28e055 /calendar
parenta9b73c75a8d3bf94b323720ca709f4872e53bfae (diff)
downloadgsoc2013-evolution-43d118565480985640afeeffb8e6902852eb0db3.tar
gsoc2013-evolution-43d118565480985640afeeffb8e6902852eb0db3.tar.gz
gsoc2013-evolution-43d118565480985640afeeffb8e6902852eb0db3.tar.bz2
gsoc2013-evolution-43d118565480985640afeeffb8e6902852eb0db3.tar.lz
gsoc2013-evolution-43d118565480985640afeeffb8e6902852eb0db3.tar.xz
gsoc2013-evolution-43d118565480985640afeeffb8e6902852eb0db3.tar.zst
gsoc2013-evolution-43d118565480985640afeeffb8e6902852eb0db3.zip
create the array to be returned only once.
2003-03-07 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/save.c (get_calendars_to_load): create the array to be returned only once. svn path=/trunk/; revision=20217
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/alarm-notify/save.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4d5997f414..6c91692b24 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-07 Rodrigo Moya <rodrigo@ximian.com>
+
+ * gui/alarm-notify/save.c (get_calendars_to_load): create the array
+ to be returned only once.
+
2003-03-06 Rodrigo Moya <rodrigo@ximian.com>
* gui/alarm-queue.c (display_notification): ref the CalClient.
diff --git a/calendar/gui/alarm-notify/save.c b/calendar/gui/alarm-notify/save.c
index 605b02c6b2..e03183ed5d 100644
--- a/calendar/gui/alarm-notify/save.c
+++ b/calendar/gui/alarm-notify/save.c
@@ -131,11 +131,11 @@ get_calendars_to_load (void)
* may not have saved the list of calendar yet.
*/
- l = gconf_client_get_list(gconf_client_get_default(), KEY_CALENDARS, GCONF_VALUE_STRING, NULL);
+ l = gconf_client_get_list (gconf_client_get_default (), KEY_CALENDARS, GCONF_VALUE_STRING, NULL);
+ uris = g_ptr_array_new ();
while (l) {
n = l->next;
- uris = g_ptr_array_new ();
- g_ptr_array_add(uris, l->data);
+ g_ptr_array_add (uris, l->data);
g_slist_free_1(l);
l = n;
}