On Fri, 09 Aug 2013 22:15:15 +0200, Mike Wey wrote:

On 08/09/2013 03:40 PM, TomD wrote:

Hi, I found some interesting custom widgets that are programmed in C. Porting them to D looks not so difficult, except for these two functions:

... code ...

The alternative would be to set-up the mingw-toolchain and do some wrapper like you do for the rest of the library, but for some simple widgets it lloks liek too much hassle :-)

Thanks,
Tom

You could take a look at how TreeModel does this:
https://github.com/gtkd-developers/GtkD/blob/master/src/gtk/TreeModel.d

It does implement an interface instead of subclassing a Gtk class directly.

This morning I errornously looked into TreeView, which is also already interesting, until I found a dead end in gtknewtreeview() :-)
TreeModel looks daunting on first sight, but thanks for the pointer.