diff options
author | Søren Sandmann <sandmann@redhat.com> | 2004-11-29 22:31:31 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2004-11-29 22:31:31 +0000 |
commit | f688fff60adb2364cd7e9bce0524a58fb4429fbc (patch) | |
tree | 09e41e7c8a10f9c441e4c5ad10edf525cc129f38 /gtk/gtksequence.c | |
parent | 89202068ea2d191d429e7fc85b06e243f530e114 (diff) | |
download | gdk-pixbuf-f688fff60adb2364cd7e9bce0524a58fb4429fbc.tar.gz |
Take nodes in reverse order to make sure sort is stable.
Mon Nov 29 17:28:53 2004 Søren Sandmann <sandmann@redhat.com>
* gtk/gtksequence.c (_gtk_sequence_sort): Take nodes in reverse
order to make sure sort is stable.
Diffstat (limited to 'gtk/gtksequence.c')
-rw-r--r-- | gtk/gtksequence.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtksequence.c b/gtk/gtksequence.c index d0c001f4d..fcfc9b088 100644 --- a/gtk/gtksequence.c +++ b/gtk/gtksequence.c @@ -256,7 +256,8 @@ _gtk_sequence_sort (GtkSequence *seq, while (_gtk_sequence_get_length (tmp) > 0) { - GtkSequenceNode *node = _gtk_sequence_get_begin_ptr (tmp); + GtkSequenceNode *node = _gtk_sequence_get_end_ptr (tmp); + node = _gtk_sequence_node_prev (node); _gtk_sequence_unlink (tmp, node); _gtk_sequence_node_insert_sorted (seq->node, node, cmp_func, cmp_data); |