Mercurial > hg > xemacs-beta
diff lwlib/xlwmenu.c @ 239:41f2f0e326e9 r20-5b18
Import from CVS: tag r20-5b18
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:15:48 +0200 |
parents | 262b8bb4a523 |
children | f220cc83d72e |
line wrap: on
line diff
--- a/lwlib/xlwmenu.c Mon Aug 13 10:15:04 2007 +0200 +++ b/lwlib/xlwmenu.c Mon Aug 13 10:15:48 2007 +0200 @@ -1639,7 +1639,7 @@ if (val->enabled) gc = mw->menu.highlight_gc; else - gc = mw->menu.inactive_button_gc; + gc = mw->menu.inactive_gc; } else if (menu_pb) { @@ -2505,11 +2505,7 @@ /* Memorize the previously selected item to be able to refresh it */ old_selection = last_same + 1 < old_depth ? old_stack [last_same + 1] : NULL; - if (old_selection && !old_selection->enabled) - old_selection = NULL; new_selection = last_same + 1 < new_depth ? new_stack [last_same + 1] : NULL; - if (new_selection && !new_selection->enabled) - new_selection = NULL; /* updates old_state from new_state. It has to be done now because display_menu (called below) uses the old_stack to know what to display. */