Mercurial > pidgin
diff console/libgnt/gntmenu.c @ 15800:682022b8a129
Make sure unbound key-combinations are handled properly.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 16 Mar 2007 20:53:24 +0000 |
parents | 1bd0456fe1c3 |
children | 1c8f1dc50685 |
line wrap: on
line diff
--- a/console/libgnt/gntmenu.c Fri Mar 16 03:43:20 2007 +0000 +++ b/console/libgnt/gntmenu.c Fri Mar 16 20:53:24 2007 +0000 @@ -134,7 +134,8 @@ int current = menu->selected; if (menu->submenu) { - return (gnt_widget_key_pressed(GNT_WIDGET(menu->submenu), text)); + do menu = menu->submenu; while (menu->submenu); + return (gnt_widget_key_pressed(GNT_WIDGET(menu), text)); } if (text[0] == 27 && text[1] == 0) {