Mercurial > pidgin
changeset 14906:1bd0456fe1c3
[gaim-migrate @ 17678]
Make sure the menus show up correctly.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 06 Nov 2006 01:11:19 +0000 |
parents | dff16b654f14 |
children | 18d1c7cbb352 |
files | console/libgnt/gntmain.c console/libgnt/gntmenu.c |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/console/libgnt/gntmain.c Mon Nov 06 00:14:30 2006 +0000 +++ b/console/libgnt/gntmain.c Mon Nov 06 01:11:19 2006 +0000 @@ -466,6 +466,7 @@ } wm->menu = newmenu; + GNT_WIDGET_UNSET_FLAGS(GNT_WIDGET(wm->menu), GNT_WIDGET_INVISIBLE); gnt_widget_draw(GNT_WIDGET(wm->menu)); g_signal_connect(G_OBJECT(wm->menu), "hide", G_CALLBACK(reset_menu), NULL);
--- a/console/libgnt/gntmenu.c Mon Nov 06 00:14:30 2006 +0000 +++ b/console/libgnt/gntmenu.c Mon Nov 06 01:11:19 2006 +0000 @@ -115,6 +115,7 @@ item->priv.y = widget->priv.y + gnt_tree_get_selection_visible_line(GNT_TREE(menu)); } gnt_widget_set_position(GNT_WIDGET(sub), item->priv.x, item->priv.y); + GNT_WIDGET_UNSET_FLAGS(GNT_WIDGET(sub), GNT_WIDGET_INVISIBLE); gnt_widget_draw(GNT_WIDGET(sub)); } else if (item->callback) { item->callback(item, item->callbackdata);