GTKD resources

Mr. Pib via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 10 20:28:23 PDT 2017


On Friday, 11 August 2017 at 02:27:21 UTC, captaindet wrote:
> On 2017-08-11 13:00, Mr. Pib wrote:
>> How can one include external files such as glade, icons, 
>> images that are
>> static in nature in to the binary but not require extraction 
>> on program
>> run to be used?
>>
>> gtk's builder doesn't seem to take an in memory representation 
>> of glade
>> files and building a pixbuf seems quite over the top to do 
>> such simple
>> things?
>
>
> including the glade UI/XML defs to the executable is simple, 
> compile with -J. switch and:
>
>
> immutable string UIdefs = import("myuidefs.glade");
> ...
> main(){
> 	...
> 	builder.addFromString( UIdefs );
> 	...

Thanks. It one can use pixbuf to do something similar, albeit 
more complicated.

https://stackoverflow.com/questions/14121166/gdk-pixbuf-load-image-from-memory





More information about the Digitalmars-d-learn mailing list