Started work on spacer item

This commit is contained in:
o9000
2015-05-05 23:32:18 +02:00
parent d2ee0a481f
commit e4e1ceec38
3 changed files with 14 additions and 0 deletions

View File

@@ -505,6 +505,16 @@ void set_panel_items_order(Panel *p)
}
if (panel_items_order[k] == 'C')
p->area.list = g_slist_append(p->area.list, &p->clock);
if (panel_items_order[k] == 'F') {
Area *spacer = calloc(sizeof(Area), 1);
spacer->panel = p;
spacer->parent = p;
spacer->bg = &g_array_index(backgrounds, Background, 0);
spacer->on_screen = 1;
spacer->size_mode = SIZE_BY_LAYOUT;
spacer->gc = 1;
p->area.list = g_slist_append(p->area.list, spacer);
}
}
init_rendering(&p->area, 0);
}