* src/gnome-utils/gnc-query-list.c: we can't use a reversed list

and prepend() because then we're always adding row 0 so the
	  saved checkmarks fail.  So, use the slow way and use 'append()'.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8320 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins
2003-05-17 03:39:57 +00:00
parent a067318b00
commit 85bcf951b2
2 changed files with 5 additions and 5 deletions

View File

@@ -10,6 +10,10 @@
of an item.
* src/gnome-utils/search-param.[ch]: fix the spelling of resizeable
* src/gnome-utils/gnc-query-list.c: we can't use a reversed list
and prepend() because then we're always adding row 0 so the
saved checkmarks fail. So, use the slow way and use 'append()'.
2003-05-12 David Hampton <hampton@employees.org>
* src/quotes/finance-quote-check.in:

View File

@@ -767,7 +767,6 @@ gnc_query_list_fill(GNCQueryList *list)
/* Reverse the list now because 'append()' takes too long */
entries = gncQueryRun(list->query);
entries = g_list_reverse(entries);
for (item = entries; item; item = item->next)
{
@@ -809,7 +808,7 @@ gnc_query_list_fill(GNCQueryList *list)
strings[i++] = gncQueryCoreToString (type, res, fcn);
}
row = gtk_clist_prepend (GTK_CLIST(list), (gchar **) strings);
row = gtk_clist_append (GTK_CLIST(list), (gchar **) strings);
gtk_clist_set_row_data (GTK_CLIST(list), row, item->data);
/* Free up our strings */
@@ -828,9 +827,6 @@ gnc_query_list_fill(GNCQueryList *list)
list->num_entries++;
}
/* Reverse the list again for the query code */
g_list_reverse(entries);
}
/********************************************************************\