On Thu, 10 Mar 2016 19:54:30 +0100, Mike Wey wrote:
[…]

I'm not familiar with "statically allocated widget initialization",
doesn't gtkmm use smartpointers for classes derived from GObject?

For widgets constructed via Gtk::Builder all widgets are on the heap with Glib::RefPtr pointers controlling them, as ever. For all manually constructed widgets the idiom is to ensure they are all stack allocated unless there is no option. I.e. use RAII rather than smart pointers unless it is not possible. This saves all the hassle of using std::unique_ptr for ownership – except where you have to do it.

As far as I can tell there is no stack located widget possibility with GtkD.

Of course this is far less important for D than C++ because of garbage collection.