Fixed theme lookup bug (was BFS instead of DFS) git-svn-id: http://tint2.googlecode.com/svn/trunk@539 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/launcher/launcher.c
→
src/launcher/launcher.c
@@ -711,6 +711,7 @@ if (theme != NULL) {
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 @@ }
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);