mirror of https://github.com/MidnightCommander/mc
(menubar_new): do not reset WOP_SELECTABLE options
...because widget is not selectable by default. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
1e9f0d6d69
commit
fbfb4f565c
|
@ -958,8 +958,6 @@ menubar_new (GList * menu)
|
||||||
w = WIDGET (menubar);
|
w = WIDGET (menubar);
|
||||||
widget_init (w, &r, menubar_callback, menubar_mouse_callback);
|
widget_init (w, &r, menubar_callback, menubar_mouse_callback);
|
||||||
w->pos_flags = WPOS_KEEP_HORZ | WPOS_KEEP_TOP;
|
w->pos_flags = WPOS_KEEP_HORZ | WPOS_KEEP_TOP;
|
||||||
/* initially, menubar is not selectable */
|
|
||||||
widget_set_options (w, WOP_SELECTABLE, FALSE);
|
|
||||||
w->options |= WOP_TOP_SELECT;
|
w->options |= WOP_TOP_SELECT;
|
||||||
w->keymap = menu_map;
|
w->keymap = menu_map;
|
||||||
menubar_set_menu (menubar, menu);
|
menubar_set_menu (menubar, menu);
|
||||||
|
|
Loading…
Reference in New Issue