Mercurial > pidgin.yaz
diff finch/libgnt/gntmenu.c @ 18069:08776fc5c06f
propagate from branch 'im.pidgin.finch.workspaces' (head 76cfc9565a5cdde8d2e1f2efc3282b309a55a110)
to branch 'im.pidgin.pidgin.2.1.0' (head 7369e1bc964aa300a73670872d34129642b3ec49)
author | Richard Nelson <wabz@pidgin.im> |
---|---|
date | Fri, 08 Jun 2007 10:21:50 +0000 |
parents | 1cedd520cd18 3c3fc1432a01 |
children | 9a0f99ea664d ac904659104f |
line wrap: on
line diff
--- a/finch/libgnt/gntmenu.c Thu Jun 07 14:48:33 2007 +0000 +++ b/finch/libgnt/gntmenu.c Fri Jun 08 10:21:50 2007 +0000 @@ -242,7 +242,10 @@ static void gnt_menu_hide(GntWidget *widget) { - GntMenu *menu = GNT_MENU(widget); + GntMenu *sub, *menu = GNT_MENU(widget); + + while ((sub = menu->submenu)) + gnt_widget_hide(GNT_WIDGET(sub)); if (menu->parentmenu) menu->parentmenu->submenu = NULL; }