[GtkD] How to use Glade?

Mike Wey mike-wey at example.com
Fri May 3 11:04:40 PDT 2013


On 05/03/2013 03:00 AM, Alexandr Druzhinin wrote:
> 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);
> }
> ?

Thats a good idea.

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list