gtkmm3 and global objects

I'm just getting started with gtkmm3. I looked in the documentation, but
couldn't see how to resolve this simple issue:

The tutorial at
implies that the very first gtkmm call is supposed to be to Gtk::Main(argc,

How does arrange for this to happen if one is creating global gtk objects
(i.e., objects created before main(argc, argv) is entered)?

(One could obviously cheat and have only pointers instead of fully-fledged
objects declared globally, but I'd rather understand the real solution and
use proper global objects rather than add a layer of indirection that
wasn't necessary before I started porting the program to gtkmm.)



Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]