Re: Fwd: strange behaviour of hide()... or not ?
- From: Sever P A <gnu sever gmail com>
- To: Daniel Elstner <daniel kitta googlemail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Fwd: strange behaviour of hide()... or not ?
- Date: Wed, 6 May 2009 18:12:41 +0200
Thanks a lot, Daniel,
> It's not the only way. Calling hide() works just as you expect it to --
> that is, it triggers the hide signal to which Gtk::Main::run() connects
> a handler that in turn calls Gtk::Main::quit() to exit the main loop.
>
> The problem is simply that in your testcase, you are calling hide()
> before Gtk::Main::run(), so the signal handler is not even installed
> yet. Also, the hide() at that point doesn't have any effect anyway
> because the window is not visible yet.
>
> The comments I added to your code point out where what happens.
Now, I understand it a little bit more...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]