Re: Gtk::Application - Switching between two Gtk::Window
- From: Phil Wolff <adiabat centurylink net>
- To: gtkmm-list gnome org
- Subject: Re: Gtk::Application - Switching between two Gtk::Window
- Date: Tue, 17 May 2016 06:22:08 -0700
Be sure that your Gtk::Application calls add_window() on
GuiWindow::Instance (). Gtk::Application can't properly handle any
window it isn't aware of.
On 2016/05/17 06:09, Tiago Matias wrote:
Hi,
I'm with a problem in a gtkmm application.
I have a main file where a Gtk::Application runs a Gtk::Window. This
window loads some configurations when is showing a backgroud image. In
the final of the loading this window calls the function hide() ant
the program returns to the main file program.
Glib::RefPtr<Gtk::Application> gtkmm_main =
Gtk::Application::create(argc, argv, "org.gtkmm.example");
gtkmm_main->run (IntroWindow::Instance());
After this, the Gtk::application runs other window:
gtkmm_main->run (GuiWindow::Instance ());
However, in this window, when i call the function hide(), the program
don't return to the main file program. If i don't run the first
window, the program returns. It seams that are some problem in the
switching of the windows. Can anyone help me.
Best Regards,
Tiago Matias
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]