Hello,
I need to create GdkPixBuf collection. I try to save pixbufs in GList - mw->disp_list:
GtkTreeIter iter;
int i = 0;
for (i; i < g_list_length(list) - 1; ++i)
{
char* file = image_list_get_current_file_path( list );
mw->p1 = gdk_pixbuf_new_from_file(file,NULL);
mw->p1 = scale_pix(mw->p1,128);
mw->disp_list = g_list_append (mw->disp_list, mw->p1);
if (!mw->img_list->current->next )
image_list_get_first(mw->img_list);
else
image_list_get_next(mw->img_list);
}
Where p1 - it's GtkPixBuf*.
But when i try to use mw->disp_list in another function i see that it is NULL. What's wrong?
Thank you.