Native GTK bindings v2

Artur Skawina art.08.09 at gmail.com
Sat Apr 14 11:16:23 PDT 2012


On 04/13/12 15:06, bioinfornatics wrote:
> Le dimanche 01 avril 2012 à 21:23 +0200, Artur Skawina a écrit :
>> The code is here: http://repo.or.cz/w/girtod.git
>>
>> The easiest way to try the bindings is probably to check out the "gtk2" branch,
>> copy the "gtk2" directory to your app directory and import from there.

> why use your library instead https://github.com/gtkd-developers/GtkD

You should use whatever suits your needs. My "library" is not really
a library, but just a set of wrapper templates that call the real C
library functions. The advantage is no overhead, the disadvantage is
sometimes a bit uglier syntax (but that area improved a lot since v1).

Note that there are a few things that could be done, but currently are
not implemented, simply because i haven't needed the functionality so far.
Things like subclassing and registering gobject classes - it all can
be done manually, but could be made a lot easier with a little help from
the bindings (btw, does gtkd help here?). Other than that, everything
needed by a typical app (that does not need to create custom widgets
or actors) should be there.

> why do not contribute to this project?

The approaches are completely different, so there's not much that could
be shared.

In short: if you don't mind working with a layer that makes you access
small structs containing just four integers via an extra D class instance,
which only contains a pointer to said struct, then gtkd might be for you.

But then you may want to consider using something like Pike [1] instead
of D...

artur

[1] http://pike.ida.liu.se/generated/manual/ref/chapter_1.html#4
    http://pike.ida.liu.se/generated/manual/modref/ex/predef_3A_3A/GTK2.html


More information about the Digitalmars-d-announce mailing list