colors in pixmap



hello everyone,

suppose I've a pixmap with a color which I want to modify with 3 slider
widgets for RGB.
The way I'm performing it now is to destroy the old pixmap, change the xpm
C structure and then recreate the pixmap with the new data.
Isn't there a better way (less expensive) of performing this operation
I'm thinking about something like

gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor);

thanx,
M.

 ____                 _____
|  _ \  ___ ___  _ __| ____|
| | | |/ __/ _ \| '__|  _|
| |_| | (_| (_) | |  | |___
|____/ \___\___/|_|  |_____|





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