Re: Question about gdk_colormap_free_colors()
- From: "Fabien BOULEAU" <bouleau ipb u-strasbg fr>
- To: "Tara M" <learfox furry ao net>, "Havoc Pennington" <hp redhat com>
- Cc: "LIST: GTKAppDevel" <gtk-app-devel-list gnome org>
- Subject: Re: Question about gdk_colormap_free_colors()
- Date: Sun, 29 Jul 2001 22:21:54 +0200
Alright, so in other words GTK+ dosen't unref the colors in
a GtkStyle when I call gtk_style_unref()?
What about the existing colors in a GtkStyle()? ie one that
came with gtk_style_copy() are those colors gonna have an
extra reference count?
GtkStyle have color fields and associated gc fields. Color counters are only
altered when working on gc fields, when gtk_style_attach() is called (only
once, works with a counter too, i.e. in gtk_style_new(), gtk_style_copy(),
etc.) and when gtk_style_detach() is called (when the object is destroyed).
Have a look in gtk/gtkstyle.c ;-)
FB
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]