* todo gdkpixmap
@ 2003-09-07 23:09 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2003-09-07 23:09 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-07 23:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-07 23:09 todo gdkpixmap Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).