-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You could also make your main window be a singleton class. In a very complex application, it's what I would do in lieu of a global class instance (which can get you into trouble, as we've seen in other posts on this list).
Michael Ekstrand wrote: > Mickael DREAN wrote: > >> I've got a small problem, is there a function like AfxGetApp() with >> visual? I need to get a pointer on the main application. > > > GTKmm doesn't have much of a sense of the root application object, like > CApp in MFC. What I've done is create an application class and write my > own get_app() function to manage its creation and access. > > - Michael > _______________________________________________ > gtkmm-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtkmm-list > - -- R. Douglas Barbieri [EMAIL PROTECTED] http://www.dooglio.net This message is signed using GnuPG. The strange-looking text you see at the bottom of the message is the signature itself. GPG Fingerprint: 3707 2A46 7DFC D673 FFB8 54B1 0EC9 5CF6 A1FC 6F11 GPG recv-key : A1FC6F11 GPG Public key : http://www.dooglio.net/dooglio.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEHuRNDslc9qH8bxERAvaLAJ40lirySQ7L02g/dCpNNZw3TTQY9wCfUyWS EVoNBQLVwYomfjvlkm4M0z4= =FquA -----END PGP SIGNATURE----- _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
