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 _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list