From: Thierry Lorthiois Date: Sat, 14 Aug 2010 21:30:54 +0000 (+0000) Subject: Fixed theme lookup bug (was BFS instead of DFS) X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=dc4092064f5febcc3bea4e4a19905ac99b6f628e;p=chaz%2Ftint2 Fixed theme lookup bug (was BFS instead of DFS) --- diff --git a/src/launcher/launcher.c b/src/launcher/launcher.c index 158e06c..6418a4c 100644 --- a/src/launcher/launcher.c +++ b/src/launcher/launcher.c @@ -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);