use list function for Widget
This commit is contained in:
parent
19887a3201
commit
a823470fd0
9
config.c
9
config.c
|
@ -271,13 +271,8 @@ create_widgets(cfg_t* cfg_statusbar, Statusbar *statusbar)
|
|||
widget_new = name_func_lookup(cfg_name(wptr), WidgetList);
|
||||
if(widget_new)
|
||||
{
|
||||
if(!widget)
|
||||
statusbar->widgets = widget = widget_new(statusbar, wptr);
|
||||
else
|
||||
{
|
||||
widget->next = widget_new(statusbar, wptr);
|
||||
widget = widget->next;
|
||||
}
|
||||
widget = widget_new(statusbar, wptr);
|
||||
widget_list_append(&statusbar->widgets, widget);
|
||||
widget->buttons = parse_mouse_bindings(wptr, "mouse", a_strcmp(cfg_name(wptr), "taglist"));
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue