Mercurial > pidgin.yaz
comparison finch/libgnt/gntmain.c @ 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 | 84d318eadc62 |
children | 09db6fec9dce 7a5025b8698c |
comparison
equal
deleted
inserted
replaced
18438:02d93d5adca9 | 18439:ec80e921818c |
---|---|
350 ask_before_exit() | 350 ask_before_exit() |
351 { | 351 { |
352 static GntWidget *win = NULL; | 352 static GntWidget *win = NULL; |
353 GntWidget *bbox, *button; | 353 GntWidget *bbox, *button; |
354 | 354 |
355 if (wm->menu) { | |
356 do { | |
357 gnt_widget_hide(GNT_WIDGET(wm->menu)); | |
358 if (wm->menu) | |
359 wm->menu = wm->menu->parentmenu; | |
360 } while (wm->menu); | |
361 } | |
362 | |
355 if (win) | 363 if (win) |
356 goto raise; | 364 goto raise; |
357 | 365 |
358 win = gnt_vwindow_new(FALSE); | 366 win = gnt_vwindow_new(FALSE); |
359 gnt_box_add_widget(GNT_BOX(win), gnt_label_new("Are you sure you want to quit?")); | 367 gnt_box_add_widget(GNT_BOX(win), gnt_label_new("Are you sure you want to quit?")); |