mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-05 20:26:09 +01:00
cosmetic
This commit is contained in:
parent
9df4429ae3
commit
1bc6d1dc2f
1 changed files with 4 additions and 2 deletions
6
config.c
6
config.c
|
@ -282,11 +282,13 @@ create_widgets(cfg_t* cfg_statusbar, Statusbar *statusbar)
|
||||||
|
|
||||||
qsort(widgets, numwidgets, sizeof(cfg_t), cmp_widget_cfg);
|
qsort(widgets, numwidgets, sizeof(cfg_t), cmp_widget_cfg);
|
||||||
|
|
||||||
for (i = 0; i < numwidgets; i++){
|
for (i = 0; i < numwidgets; i++)
|
||||||
|
{
|
||||||
wptr = widgets + i;
|
wptr = widgets + i;
|
||||||
widget_new = name_func_lookup(cfg_name(wptr), WidgetList);
|
widget_new = name_func_lookup(cfg_name(wptr), WidgetList);
|
||||||
if (widget_new)
|
if (widget_new)
|
||||||
if(!widget){
|
if(!widget)
|
||||||
|
{
|
||||||
widget = widget_new(statusbar, wptr);
|
widget = widget_new(statusbar, wptr);
|
||||||
statusbar->widgets = widget;
|
statusbar->widgets = widget;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue