]> Dogcows Code - chaz/tint2/commitdiff
Fixed theme lookup bug (was BFS instead of DFS)
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 14 Aug 2010 21:30:54 +0000 (21:30 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 14 Aug 2010 21:30:54 +0000 (21:30 +0000)
src/launcher/launcher.c

index 158e06c1ddac0a590253ed1b0b8709482b9c778a..6418a4cebc447205e30a5f22e5d4fac10fe2cbfa 100644 (file)
@@ -711,6 +711,7 @@ void launcher_load_themes(Launcher *launcher)
                        launcher->icon_themes = g_slist_append(launcher->icon_themes, theme);
 
                        GSList* item = theme->list_inherits;
+                       int pos = 0;
                        while (item != NULL)
                        {
                                char *parent = item->data;
@@ -724,7 +725,8 @@ void launcher_load_themes(Launcher *launcher)
                                        queued_item = g_slist_next(queued_item);
                                }
                                if (!duplicate) {
-                                       queue = g_slist_append(queue, strdup(parent));
+                                       queue = g_slist_insert(queue, strdup(parent), pos);
+                                       pos++;
                                        queued = g_slist_append(queued, strdup(parent));
                                }
                                item = g_slist_next(item);
This page took 0.024364 seconds and 4 git commands to generate.