mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-tree-model-split-reg] prepend GList loops instead of append
This commit is contained in:
parent
322a5998fb
commit
b4d3d4952d
@ -516,7 +516,7 @@ gtm_sr_foreach_func (GtkTreeModel *model,
|
||||
g_assert ( rowref_list != NULL );
|
||||
|
||||
rowref = gtk_tree_row_reference_new (model, path);
|
||||
*rowref_list = g_list_append (*rowref_list, rowref);
|
||||
*rowref_list = g_list_prepend (*rowref_list, rowref);
|
||||
|
||||
return FALSE; /* do not stop walking the store, call us with next row */
|
||||
}
|
||||
@ -530,8 +530,6 @@ gtm_sr_remove_all_rows (GncTreeModelSplitReg *model)
|
||||
|
||||
gtk_tree_model_foreach (GTK_TREE_MODEL(model), (GtkTreeModelForeachFunc)gtm_sr_foreach_func, &rr_list);
|
||||
|
||||
rr_list = g_list_reverse (rr_list);
|
||||
|
||||
for ( node = rr_list; node != NULL; node = node->next )
|
||||
{
|
||||
GtkTreePath *path;
|
||||
|
Loading…
Reference in New Issue
Block a user