changing colors ?



Hi

I'm having sort of a problem here.
I'm writing a little application which includes
four pixmaps.
Now I need to change the colors of these pics from time
to time, and I'm trying to figure out how to, since a week or so...

All four pixmaps are created from the same xpm data,
but with different color definitions using gdk_pixmap_create_from_xpm_d().

Now, when I try to change the colors by creating another
pixmap (again using same data with different colors) and then
using gtk_pixmap_set() to update the picture, I get a crash/coredump.

gdb reveals that gdk_window_get_colormap() crashes when being called
by gdk_pixmap_colormap_create_from_xpm_d() with window=0x0 ...

If anyone cares, I can give more details on this...

--
greetings,
 _        _
(_'      |_)
,_)tefan | \eich(@informatik.tu-muenchen.de)



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