changeset 18439:ec80e921818c

Hide the menu when ctrl-c is pressed.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 05 Jul 2007 19:58:35 +0000
parents 02d93d5adca9
children be10fc22d649
files finch/libgnt/gntmain.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntmain.c	Thu Jul 05 07:00:15 2007 +0000
+++ b/finch/libgnt/gntmain.c	Thu Jul 05 19:58:35 2007 +0000
@@ -352,6 +352,14 @@
 	static GntWidget *win = NULL;
 	GntWidget *bbox, *button;
 
+	if (wm->menu) {
+		do {
+			gnt_widget_hide(GNT_WIDGET(wm->menu));
+			if (wm->menu)
+				wm->menu = wm->menu->parentmenu;
+		} while (wm->menu);
+	}
+
 	if (win)
 		goto raise;