(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:
Andrew Borodin 2023-01-01 16:14:03 +03:00
parent 1e9f0d6d69
commit fbfb4f565c
1 changed files with 0 additions and 2 deletions

View File

@ -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);