simplify
This commit is contained in:
parent
c59ecf0127
commit
d428982af7
|
@ -79,8 +79,7 @@ textbox_new(Statusbar *statusbar, cfg_t *config)
|
||||||
w->draw = textbox_draw;
|
w->draw = textbox_draw;
|
||||||
w->tell = textbox_tell;
|
w->tell = textbox_tell;
|
||||||
|
|
||||||
d = p_new(Data, 1);
|
w->data = d = p_new(Data, 1);
|
||||||
w->data = (void*) d;
|
|
||||||
|
|
||||||
if ((color = cfg_getstr(config, "fg")))
|
if ((color = cfg_getstr(config, "fg")))
|
||||||
d->fg = initxcolor(statusbar->screen, color);
|
d->fg = initxcolor(statusbar->screen, color);
|
||||||
|
|
Loading…
Reference in New Issue