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.