Your usage of GError is wrong. Please read the API documentation on it again. The (probably) correct code is:
int main (int argc, char *argv[]) { guchar *v; GdkPixbuf *pixbuf; GError *error = NULL;
g_type_init ();
pixbuf = gdk_pixbuf_new_from_file ("image.jpg", error);
*cough*
pixbuf = gdk_pixbuf_new_from_file ("image.jpg", &error);
if (pixbuf) v = gdk_pixbuf_get_pixels (pixbuf); else /* handle error here */;
return 0; }
_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list