<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<small>Terribly late reply. Don't know if you've found a solution.<br>
I tested with one of the example programs in the gtkmm tutorial. I
created two identical windows, and called app->run() twice. The
result was<br>
GLib-GIO-CRITICAL **: g_application_parse_command_line:
assertion '!application->priv->options_parsed' failed<br>
and a segfault. I don't think Gtk::Application::run() is meant to
be called more than once. A possible solution is to create two
Gtk::Applications.<br>
<br>
auto app1 = Gtk::Application::create(argc, argv,
"org.gtkmm.example");<br>
RadioButtons buttons1;<br>
app1->run(buttons1);<br>
<br>
auto app2 = Gtk::Application::create(argc, argv,
"org.gtkmm.example");<br>
RadioButtons buttons2;<br>
return app2->run(buttons2);<br>
<br>
Kjell<br>
<br>
</small>
<div class="moz-cite-prefix"><small>Den 2016-05-17 kl. 17:35, skrev
Tiago Matias:<br>
</small></div>
<blockquote cite="mid:573B3A31.4030303@oncontrol-tech.com"
type="cite"><small> </small>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Before the line gtkmm_main->run (GuiWindow::Instance ()), I
added the the following line:<br>
<br>
gtkmm_main->add_window(GuiWindow::Instance ());<br>
<br>
This not have solved my problem.<br>
<br>
Best Regards,<br>
Tiago Matias<br>
<br>
<br>
<div class="moz-cite-prefix">On 05/17/2016 02:22 PM, Phil Wolff
wrote:<br>
</div>
<blockquote cite="mid:573B1B00.6060200@centurylink.net"
type="cite">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. <br>
<br>
On 2016/05/17 06:09, Tiago Matias wrote: <br>
<blockquote type="cite">Hi, <br>
<br>
<br>
I'm with a problem in a gtkmm application. <br>
<br>
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. <br>
<br>
Glib::RefPtr<Gtk::Application> gtkmm_main =
Gtk::Application::create(argc, argv, "org.gtkmm.example"); <br>
gtkmm_main->run (IntroWindow::Instance()); <br>
<br>
<br>
After this, the Gtk::application runs other window: <br>
<br>
gtkmm_main->run (GuiWindow::Instance ()); <br>
<br>
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. <br>
<br>
Best Regards, <br>
Tiago Matias <br>
</blockquote>
</blockquote>
</blockquote>
<br>
</body>
</html>