Re: Question about gdk_colormap_free_colors()



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]