mc 4.7.2 color of inactive menu



In mc 4.7.2 appear new [menu] entry for skin - 'menuinactive' for color of 
inactive main menu. Looks good. But why inactive main menu lacks hotkeys? I 
think, hotkeys should hightlighted anyway. For hotkey used entry 'menuhot'.

This patch restores of old (patched 4.7.0.х) behavior
--- menu.c.old  2010-05-06 01:30:03.000000000 +0700
+++ menu.c      2010-05-09 02:55:53.000000000 +0700
@@ -218,7 +218,7 @@
 menubar_set_color (WMenuBar * menubar, gboolean current, gboolean hotkey)
 {
     if (!menubar->is_active)
-        tty_setcolor (MENU_INACTIVE_COLOR);
+        tty_setcolor (hotkey ? MENU_HOT_COLOR : MENU_INACTIVE_COLOR);
     else if (current)
         tty_setcolor (hotkey ? MENU_HOTSEL_COLOR : MENU_SELECTED_COLOR);
     else

-- 
   With Best Regards.
   Rashid N. Achilov (RNA1-RIPE), Web: http://openoffice.mirahost.ru
   E-Mail: shelton [гав!] vmfree [тчк] askd [тчк] ru
   PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]