www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - GtkD - Add images to IconView with Pixbuf

reply cfcd14f496326e429ce03c48650b7966 <dummy dummy.org> writes:
Hello. :-)

I found this guide
: 
https://www.kksou.com/php-gtk2/sample-codes/display-a-list-of-thumbnail-images-using-GtkIconView.php

This guide used 'Pixbuf' for use fromFile method, but GtkD don't 
have it.
: https://api.gtkd.org/gdkpixbuf.Pixbuf.Pixbuf.html

Is there any other way?
Thanks.
Mar 02 2020
parent Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
On Monday, 2 March 2020 at 16:37:46 UTC, 
cfcd14f496326e429ce03c48650b7966 wrote:
 Hello. :-)

 I found this guide
 : 
 https://www.kksou.com/php-gtk2/sample-codes/display-a-list-of-thumbnail-images-using-GtkIconView.php

 This guide used 'Pixbuf' for use fromFile method, but GtkD 
 don't have it.
 : https://api.gtkd.org/gdkpixbuf.Pixbuf.Pixbuf.html

 Is there any other way?
 Thanks.
Looks like gtkd follows a more d idiomatic way. Use constructor Pixbuf(filename). this(string filename);
Mar 02 2020