GNOME Bugzilla – Bug 442823
Pango structures fail to use GLib types
Last modified: 2007-06-01 11:54:10 UTC
A glance at http://developer.gnome.org/doc/API/2.0/pango/pango-Glyph-Storage.html will show numerous functions taking double arguments. Shouldn't these all be gdouble in a GNOME library? [Since gdouble is presently typedef as double, fixing this shouldn't break anything, should it?] AfC
Seems to be a bit more general than I thought. PangoGlyphString has "char*" showing up. And "int" is in PangoRectangle. AfC
gint, gdouble, etc, aren't there for portability or convenience, they are there for gconsistency with gint32, guint, and so forth. I thought that was sort of cool when I first encountered GTK+, but by the time I wrote pango A) my g key was wearing out B) I had seen too many people on the mailing lists doing (gint)some_int. I don't anybody in the GTK+ team really is that fond of these types, but they are kept in GLib and GTK+ for consistency with the code already there. If you find any occurences of useless gtypes in Pango, *that* is a bug. (Pango does use gpointer, I'm not sure even that really makes sense; historically speaking gpointer is a clone of XPointer which dates back to before 'void *' existed...)