[GtkD] How to use Glade?

Carlos checoimg at gmail.com
Thu May 2 18:38:16 PDT 2013


On Thursday, 2 May 2013 at 22:07:46 UTC, Mike Wey wrote:
> On 05/02/2013 11:25 PM, Carlos wrote:
>>
>>>
>>> Try:
>>>
>>> dmd testgithub.d $(pkg-config --cflags --libs gtkd-2)
>>
>> It compiles but doesn't run well. I'm checking this comment on 
>> the code.
>>
>> /**
>> * Usage ./gladeText /path/to/your/glade/file.glade
>> *
>> */
>
> Normally the example looks for builderTest.glade in the 
> directory where the binary is.
>
> There one in the GtkD git 
> https://github.com/gtkd-developers/GtkD/blob/master/demos/builder/builderTest.glade
>
> You can also specify a different glade file on the commandline, 
> the example code tries to access a wiget named window1 if it's 
> not pressent in the glade file it will print "No window?" and 
> exit.
Thanks Mike Wey this was crucial on this workaround.


More information about the Digitalmars-d-learn mailing list