View previous topic :: View next topic |
Author |
Message |
Mitu
Joined: 22 Sep 2009 Posts: 59 Location: Poland
|
Posted: Thu Feb 25, 2010 1:51 pm Post subject: How to create ListG of type Pixbuf? |
|
|
I want to create a ListG of Pixbufs and pass it to setIconList() function. However this
Code: | ListG imgList = new ListG(null);
Image image = new Image("");
image.setFromFile(programPath ~ "image/logo/dcoder16.png");
imgList.append(cast(void*) (image.getPixbuf()));
setIconList(imgList);
|
doesn't work (segmentation fault). What's wrong? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Fri Feb 26, 2010 1:09 pm Post subject: |
|
|
Use image.getPixbuf().getPixbufStruct() so you'll pass the struct itself. |
|
Back to top |
|
|
|