Re: GTKD resources

2017-08-11 Thread Mr. Pib via Digitalmars-d-learn
Here is what I came up with import gdkpixbuf.Pixbuf; GdkPixbuf*[string] __ImageCache; void SetImage(string imgName)(gtk.Image T) { import std.path, std.conv, gdkpixbuf.Pixbuf; GError* err = null; if (imgName !in __ImageCache) { GdkPixbufLoader* __P

Re: GTKD resources

2017-08-10 Thread Mr. Pib via Digitalmars-d-learn
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

Re: GTKD resources

2017-08-10 Thread captaindet via Digitalmars-d-learn
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

GTKD resources

2017-08-10 Thread Mr. Pib via Digitalmars-d-learn
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 s