Re: Waiting for multiple windows
- From: Armin Burgmeier <armin arbur net>
- To: Robert Pearce <rob bdt-home demon co uk>
- Cc: gtkmm-list gnome org
- Subject: Re: Waiting for multiple windows
- Date: Fri, 31 Aug 2007 02:39:36 +0200
On Thu, 2007-08-30 at 22:25 +0100, Robert Pearce wrote:
> On Wed, 29 Aug 2007 20:42:49 +0100
> Edd Dawson <edd mr-edd co uk> wrote:
> >
> > Currently, when I close the main window, all the pop-ups dissappear because the
> > event loop has finished. Is there any way to keep the initial call to
> > Gtk::Main::Run() from finishing until all the popups have been closed?
>
> I'm not sure about this, but I think the trick is to override the main window's on_close event so as to minimize rather than hide.
It is OK to hide (or destroy) the window. Just don't call
Gtk::Main::run() with the main window as its argument (there is a
overload that takes no arguments).
> Obviously you then need to provide some other way to make it close properly. If you want that to be when the last pop-up closes you probably need to maintain some sort of counter of windows so that the last pop-up knows it's the last one and can call the method that closes the main window.
>
> Rob
Armin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]