Re: Two windows in GTKmm



Adam Chyla [PL] wrote:
> When I hide first window second window is hide too and program is finished.

So take a look at the GTKmm tutorial.
http://gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-helloworld.html

"When we call Gtk::Main::run(), giving it the helloworld Window, it
shows the Window and starts the gtkmm event loop. During the event loop
gtkmm idles, waiting for actions from the user, and responding
appropriately. When the user closes the Window, run() will return,
causing the final line of our main() function be to executed. The
application will then finish."


So you probably don't want to pass it to run().

Simon


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]