Re: change pixmap color table

> and I'd like to change the "+" color from red(#FF0000) to green(#00FF00) at r
>unning time to simulate a kind of "led" that blinks red... green... red... gre
> other alternative would be create red_xpm and green_xpm and change which xpm 
>the pixmap is using, but I don't know how to to this.
> Do you have any hint? manpage? manual? about doing this?

create two pixmaps from XPM's. then create a third, and use gtk_pixmap_set()
to alternate between the two colored ones. its very trivial.


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