May 03, 2013
03.05.2013 8:29, Carlos пишет:
>>
>> I got it working now. I'm using the sample code and I made another
>> layout with Glade for GTK+3 and saved it with the same name, so when I
>> compile the file is called and I get the UI I wanted.
>
> SO now next step is to learn the signals part, Right ?
right. and it's very very simpler than in plain C
May 03, 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
1 2 3
Next ›   Last »