Re: stupid question regarding pixmaps and reference counts
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: NavEcos <ecos navosha com>
- Cc: gtk-list gnome org
- Subject: Re: stupid question regarding pixmaps and reference counts
- Date: Thu, 19 Sep 2002 10:32:17 +0300
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]