1 /***************************************************************************
2 support.c - description
5 copyright : (C) 2002 by blight
6 email : blight@Ashitaka
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
22 // function to create pixmaps from buffers
24 create_pixmap_d (GtkWidget
*widget
,
27 GdkColormap
*colormap
;
32 colormap
= gtk_widget_get_colormap (widget
);
33 gdkpixmap
= gdk_pixmap_colormap_create_from_xpm_d (NULL
, colormap
, &mask
,
35 pixmap
= gtk_pixmap_new (gdkpixmap
, mask
);
36 gdk_pixmap_unref (gdkpixmap
);
37 gdk_bitmap_unref (mask
);