This is the mail archive of the
mailing list for the Guile project.
- From: Kevin Ryde <user42 at zip dot com dot au>
- To: guile-gtk at sources dot redhat dot com
- Date: Mon, 08 Sep 2003 09:09:05 +1000
- Subject: todo gdkpixmap
I add a bit to the TODO file,
* GdkPixmap should use gdk_pixmap_ref and gdk_pixmap_unref, not
gdk_window_ref and gdk_window_unref. Likewise GdkBitmap.
Although GdkPixmap and GdkWindow are the same pointer type (in gtk
1.2), the unref functions are not the same. gdk_pixmap_unref frees
when the count drops to zero, gdk_window_unref doesn't and instead
prints a warning about an undestroyed window reaching zero.
Probably need to have GdkPixmap and GdkWindow as distinct boxed
types, but allow either in a GdkDrawable parameter. Distinct types
would allow tighter type checking of pixmap versus window in
parameters too (for instance gdk_window_map shouldn't accept a
pixmap). This gets easier in gtk 2, where all are GObjects.