Hi,
If I add the param "Gio::APPLICATION_HANDLES_COMMAND_LINE" to Gtk::Application
it exits automatically.
Is it a bug or feature?
Simple sample:
#include <gtkmm.h>
int
main(int argc, char *argv[]) {
Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc,
argv,
"org.app.com");//, Gio::APPLICATION_HANDLES_COMMAND_LINE);
Gtk::Window win;
win.show_all();
app->run(win);
return 0;
}
It compiles and runs fine, however if you add/uncomment the
Gio::APPLICATION_HANDLES_COMMAND_LINE param
to the app it will compile fine but the executable execute past app->run(win)
and just exit.
It happens on Ubuntu 12.10 amd64 which ships with libgtkmm-3.0-dev version
3.5.13-0ubuntu1
On Ubuntu 12.04 I don't have this subtle issue, however it complains if I don't
add this param yet access the param list later on.
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list