From ac4ca10036ec7d3afb60a621c4d43dded203cea7 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 1 Apr 2004 00:31:03 +0000 Subject: Fixes #56120 2004-03-31 JP Rosevear Fixes #56120 * gui/gnome-cal.c (append_category_cb): update the correct element (client_categories_changed_cb): pass the array, not a reference to it svn path=/trunk/; revision=25273 --- calendar/gui/gnome-cal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui/gnome-cal.c') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 8b9510dba5..eb7605d8df 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1838,7 +1838,7 @@ append_category_cb (gpointer key, gpointer value, gpointer data) c = data; g_ptr_array_set_size (c, c->len + 1); - c->pdata[c->len] = g_strdup (category); + c->pdata[c->len - 1] = g_strdup (category); } @@ -1874,7 +1874,7 @@ client_categories_changed_cb (ECal *ecal, GPtrArray *categories, gpointer data) merged = g_ptr_array_sized_new (g_hash_table_size (cat_hash)); g_ptr_array_set_size (merged, 0); - g_hash_table_foreach (cat_hash, append_category_cb, &merged); + g_hash_table_foreach (cat_hash, append_category_cb, merged); g_hash_table_destroy (cat_hash); cal_search_bar_set_categories (CAL_SEARCH_BAR (priv->search_bar), merged); -- cgit