This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]