Re: [gtk-list] Creating pixmaps from xpm data


FAQ guys: you should put this in there. :-)

The best solution, suggested by Owen in an old mail, is to use
gdk_pixmap_colormap_create_from_xpm_d() which allows its window argument
to be NULL if you pass a colormap. Call gtk_widget_get_colormap() to get
the colormap to use.

You can also gtk_widget_realize() the widget (if and only if it's already
somewhere inside a toplevel window) but this is somewhat hacky.


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