Fixed theme lookup bug (was BFS instead of DFS)
git-svn-id: http://tint2.googlecode.com/svn/trunk@539 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
d4102b440d
commit
d16dcae93e
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue