Re: [gtk-list] Creating pixmaps from xpm data
- From: Havoc Pennington <hp redhat com>
- To: Gtk List <gtk-list redhat com>
- Subject: Re: [gtk-list] Creating pixmaps from xpm data
- Date: Sat, 14 Aug 1999 18:51:29 -0400 (EDT)
Hi,
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.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]