Rupert Swarbrick <[email protected]> writes: > Hi there, > > I'm trying (and seemingly failing!) to work out how to get GApplication > / its C++ wrapper to correctly load stuff specified on the command line. > > I can't work out what you're supposed to do from the Glibmm > documentation or from the GIO reference manual. Am I supposed to just > pass the flag and then implement some virtual function? Or is there a > different way I should be doing it?
What I've done which works:
(1) Get hold of the GApplication via the gobj() member function
(2) Use g_signal_connect to add a (static) handler for the "open"
signal, passing a pointer to my instance as the user_data
parameter.
(3) Call a non-static open() function from that signal handler.
But, given that
virtual void Gio::Application::on_open (...)
exists, I guess there is a different way that one is supposed to be able
to do it, without grubbing around with void*'s?
Rupert
pgp_YIFYe_K0Q.pgp
Description: PGP signature
_______________________________________________ gtkmm-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtkmm-list
