Merge branch '2350_buttonbar_numbers'

* 2350_buttonbar_numbers:
  Ticket #2350: show numbers for all Fx keys as for enabled as for disabled.
This commit is contained in:
Andrew Borodin 2010-09-20 19:45:51 +04:00
commit 7680906d6f

View File

@ -3126,11 +3126,7 @@ buttonbar_callback (Widget * w, widget_msg_t msg, int parm)
break;
tty_setcolor (BUTTONBAR_HOTKEY_COLOR);
/* don't show num of undefined button */
if ((bb->labels[i].text == NULL) || (bb->labels[i].text[0] == '\0'))
tty_print_string (" ");
else
tty_printf ("%2d", i + 1);
tty_printf ("%2d", i + 1);
tty_setcolor (BUTTONBAR_BUTTON_COLOR);
text = (bb->labels[i].text != NULL) ? bb->labels[i].text : "";