After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 468278 - Display proper types for properties
Display proper types for properties
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.8
Other Linux
: Normal minor
: 1.10
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-19 18:44 UTC by Yeti
Modified: 2007-11-11 11:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (2.02 KB, patch)
2007-09-23 19:31 UTC, Yeti
committed Details | Review

Description Yeti 2007-08-19 18:44:47 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.
Comment 1 Yeti 2007-09-23 19:31:41 UTC
Created attachment 96072 [details] [review]
proposed patch

Format property types with get_type_name() as we do with signal argument types.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2007-11-11 11:35:39 UTC
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.