Loading images (newbie question...)



Help!

I've tracked down :

                p = gdk_pixbuf_new_from_file (filename,NULL);

But how do I display this image in a GtkFixed ?



I'm trying to replace some old code :
  p = gdk_pixmap_colormap_create_from_xpm (0,
                                           gdk_colormap_get_system (), NULL,
                                           NULL, filename);
  pixmap = gtk_pixmap_new (p, 0);

so it'll load more than just .xpm's....


(I assume I need something like the gtk_pixmap_new)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]