03.05.2013 0:43, Mike Wey пишет:
On 05/02/2013 03:58 PM, Alexandr Druzhinin wrote:
How to use GtkD with Glade? Is some tutorial available?
I spent some time trying to use Glade to build non-trivial application,
but I do it very inproductive, so I'd like to get some help or I'm
afraid it will be lasting for years...
For example, if somebody would upload some example of Gtk application,
that built with glade and has several typical widgets and signal
handlers - it may help very much.

There is an small example distributed with GtkD:
https://github.com/gtkd-developers/GtkD/blob/master/demos/builder/builderTest.d


won't it be better to have the simple template to hide cast() using Builder.getObject():

auto getObjectAs(T)(Builder b, string object_name) {
        return cast(T) b.getObject(object_name);
}
?

Reply via email to