On 03/08/2016 06:35 PM, Russel Winder wrote:

This is really just a note to note that all the example of GtkD I can find on the Web are old-style code that should not be followed for new code. The new model is to have main create an instance of an Application which is an event handler for all the application level events, and ApplicationWindows which are create and managed by the Application instance.

Does anyone know of any examples in the new style (other than my trivial Hello World which doesn't follow the standard C++ paradigm.

This is really leading up to whether GtkD code should look like Gtk+ C code or GtkMM C++ code in style?

Gerald Nunn recently contributed two examples that use
Application/ApplicationWindow:

https://github.com/gtkd-developers/GtkD/blob/master/demos/gtkD/DemoActions/DemoActions.d
https://github.com/gtkd-developers/GtkD/blob/master/demos/gtkD/DemoMultithread/DemoMultithread.d

Updating the other examples is on the todo list but haven't gotten
around to it.