Re: stupid question regarding pixmaps and reference counts



NavEcos wrote:

How do I get the reference count of a GdkPixmap?


I know how to increment and decrement the count, but not how to get the
actual value.  I tried casting it to a GTK_OBJECT but it says it's an
invalid pointer.

Any help?

Hello (it's about gtk+-2.0),
It says right, cause GObject -> GdkDrawable -> GdkPixmap.
You have to cast to GObject*, not to GtkObject*.
So all you need is: ((GObject*)pixmap)->ref_count.

Olexiy





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