Started work on spacer item
This commit is contained in:
10
src/panel.c
10
src/panel.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user