Re: Question about gdk_colormap_free_colors()
- From: "Tara M" <learfox furry ao net>
- To: "LIST: GTKAppDevel" <gtk-app-devel-list gnome org>
- Subject: Re: Question about gdk_colormap_free_colors()
- Date: 28 Jul 2001 13:54:37 PDT
On Fri, 27 Jul 2001 14:14:44 +0200, Fabien Bouleau said:
When you allocate colors with both flags set to true (nearest color and
allocate color), GDK looks for any existing color with same rgb
components. If found, the "pixel" field of your color structure is
updated and an internal counter is increased (to know how many "clients"
use it). If it's not found or nearest color flag is set to false, a new
entry is allocated and counter is set to 1 (GdkERROR occurs if colormap
is full).
When freeing color, this counter is decreased and deleted as soon as it
reaches 0.
Thanks, I had one more question about that.
If I use gtk_style_unref(), will the reference count for the
allocated colors on there also be unreferenced?
--
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
.__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]