Browse Source

(buttonbar_new): set options directly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 2 years ago
parent
commit
1e9f0d6d69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/widget/buttonbar.c

+ 1 - 1
lib/widget/buttonbar.c

@@ -249,7 +249,7 @@ buttonbar_new (void)
     widget_init (w, &r, buttonbar_callback, buttonbar_mouse_callback);
 
     w->pos_flags = WPOS_KEEP_HORZ | WPOS_KEEP_BOTTOM;
-    widget_want_hotkey (w, TRUE);
+    w->options |= WOP_WANT_HOTKEY;
 
     return bb;
 }