GNOME Bugzilla – Bug 468278
Display proper types for properties
Last modified: 2007-11-11 11:35:39 UTC
The gobject scanner improves type presentation for signal arguments so that `char*' is displayed instead of `gchararray' as the type, types that are pointers get `*', etc. This is not done for properties but should be. For instance at http://developer.gnome.org/doc/API/2.0/gtk/GtkCellRendererText.html#id3249089 one can see string properties displayed as gchararray, GdkColor* properties as GdkColor -- this can be confusing for newbie developers as one passes a pointer to GdkColor to g_object_set(), not the struct.
Created attachment 96072 [details] [review] proposed patch Format property types with get_type_name() as we do with signal argument types.
2007-11-11 Stefan Kost <ensonic@users.sf.net> patch by: David Nečas <yeti@physics.muni.cz> * gtkdoc-mkdb.in: * gtkdoc-scangobj.in: Display proper types for pointer properties. Fixes #468278.