[gnome-builder/gnome-builder-3-38] core: change ordering for insertion



commit 2714d0719b42207eeaffbb8e74e88713d7385743
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 23 10:42:45 2020 -0700

    core: change ordering for insertion
    
    This results in a more expected insertion order.

 src/libide/core/ide-object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/core/ide-object.c b/src/libide/core/ide-object.c
index abb10ff63..df93585f6 100644
--- a/src/libide/core/ide-object.c
+++ b/src/libide/core/ide-object.c
@@ -964,7 +964,7 @@ ide_object_insert_sorted (IdeObject        *self,
   g_assert (priv->children.head != NULL);
   g_assert (priv->children.tail != NULL);
 
-  for (GList *iter = priv->children.tail; iter; iter = iter->prev)
+  for (GList *iter = priv->children.head; iter; iter = iter->head)
     {
       IdeObject *other = iter->data;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]