(widget_init): init pos_flags member to WPOS_KEEP_DEFAULT.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2013-08-12 13:51:01 +04:00
parent 1b041ad484
commit 200cb115ab

View File

@ -145,6 +145,7 @@ widget_init (Widget * w, int y, int x, int lines, int cols,
w->y = y;
w->cols = cols;
w->lines = lines;
w->pos_flags = WPOS_KEEP_DEFAULT;
w->callback = callback;
w->mouse = mouse_handler;
w->set_options = widget_default_set_options_callback;