[gnome-menus] Revert "gmenu-tree: Insert directories in the correct order"



commit 9d14f43025239ad96e30b2271d4075c97f1fd144
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Apr 30 02:39:45 2013 -0400

    Revert "gmenu-tree: Insert directories in the correct order"
    
    This reverts commit 119fc0ccac8f3519fec745cb7a3a093649c9f209.
    
    Side-effects of the ordering can be dangerous, as override files
    can unintentionally update the ordering of the subdirs. It's
    best to leave this in an unordered state for now.

 libmenu/gmenu-tree.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libmenu/gmenu-tree.c b/libmenu/gmenu-tree.c
index ac55eeb..5e70e3e 100644
--- a/libmenu/gmenu-tree.c
+++ b/libmenu/gmenu-tree.c
@@ -3456,8 +3456,8 @@ process_layout (GMenuTree          *tree,
                                         layout_iter,
                                         allocated);
             if (child_dir)
-              directory->subdirs = g_slist_append (directory->subdirs,
-                                                   child_dir);
+              directory->subdirs = g_slist_prepend (directory->subdirs,
+                                                    child_dir);
 
            menu_verbose ("Processed <Menu>\n");
           }


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