Re: gtk_main problematic
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list redhat com
- Subject: Re: gtk_main problematic
- Date: 07 Jan 2000 16:48:58 -0500
fjolliton@free.fr writes:
> I've a main widget displayed when program start, with a button than
> open another window with it's own gtk_main loop (like a dialog box).
> This last widget is made modal (either with gtk_widget_set_modal, or
> with gtk_grab_add). (But this do not affect the behavior below, I
> guess)
>
> The problem: clicking window manager close button of the main window
> terminate the gtk_main loop launched from the dialog box, then return
> to "global" gtk_main loop.
While Havoc is right that GTK+ is deficient in this manner and
handling this right is hard, you can at least not quit the
wrong main loop by using g_main_run()/g_main_quit() instead
of gtk_main(). Preventing this problem is the reason why
g_main_run() takes a GMainLoop argument.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]