[9551] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Deallocating/changing colors

daemon@ATHENA.MIT.EDU (David Cunningham)
Sun Oct 25 06:49:51 1998

Date: Sun, 25 Oct 1998 11:51:56 +0000 (GMT)
From: David Cunningham <david@deltanet.force9.co.uk>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Hi,

I have a variable "color" which is a pointer to a GTK Color. I want to
change the red green and blue values of color regularly. Is there any
function to do this, or is there a way to deallocate the memory used by
the color so I can just make a new color?
I have a program which used 2 For loops and in eery pass of the inner loop
it changes the color, and every time it completes a loop the program slows
down even further. I presume this is due to having so many colors, so I
really to need to either change the color, or scrap the old one and make
a new one as explained above.

Thanks for your help!

David Cunningham


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post