Re: Pixmap reference count



I'm working with 1.3.5 (a not really released version of gtk)
and I use:

G_OBJECT(pixmap)->ref_count

on a GdkPixmap. Pixmaps on the other hand are not GObjects.
they are a XID if I'm not mistaken; which refers to a X resource.

If reference counting is supported in 1.2 and G[dt]kPixmap's are
children of the GObject than the above method should work.



Cheers,
        -Tristan

PS:
        I'm not nescisarily presice with the spelling
so you should probably check gobject.h to be sure about "ref_count"


Bryan Brown wrote:

With gtk 1.2 is there a way to get the reference count on a pixmap?  I
don't see an obvious function that does that.

Thanks,

Bryan

*---------------------------------------------------------------
* Bryan Brown      <*>              bbrown radix net
* http://www.radix.net/~bbrown
*---------------------------------------------------------------

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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