- From: Markus Lausser <sgop users sourceforge net>
- To: gtk-app-devel-list gnome org
- Subject: gdk_pixmap de/allocation
- Date: Wed, 19 Sep 2001 17:03:08 +0200
I am drawing a pixmap in a gtk_ctree:
I have the following line:
gtk_ctree_node_set_pixmap(ctree, node, 5, pixmap, NULL);
The pixmap is allocated as followed:
If there is no pixmap in the ctree cell yet or the column width
has changed then i allocate a new pixmap, otherwise i draw only the
context changes in the existing one.
Now my question: do i have to deallocate the old pixmap or something?
i cant find any pixmap deallocation function, for now i only
gtk_pixmap_unref() on the old pixmap. Is that enough?
] [Thread Prev