launcher_enabled = 0;
}
-void resize_launcher(void *obj)
+int resize_launcher(void *obj)
{
Launcher *launcher = obj;
Panel *panel = launcher->area.panel;
}
}
}
-
- // resize force the redraw
- launcher->area.redraw = 1;
+ return 1;
}
// %c -> Name
// %k -> path
if (entry->exec) {
- char *exec2 = malloc(strlen(entry->exec) + strlen(entry->name) + strlen(entry->icon) + 100);
+ char *exec2 = malloc(strlen(entry->exec) + (entry->name ? strlen(entry->name) : 1) + (entry->icon ? strlen(entry->icon) : 1) + 100);
char *p, *q;
// p will never point to an escaped char
for (p = entry->exec, q = exec2; *p; p++, q++) {
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;
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);