[GtkD] How to use Glade?
Alexandr Druzhinin
drug2004 at bk.ru
Thu May 2 18:00:45 PDT 2013
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);
}
?
More information about the Digitalmars-d-learn
mailing list