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 770459 - Tutorial article is slightly wrong
Tutorial article is slightly wrong
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2016-08-26 22:17 UTC by schaefer.pp
Modified: 2017-10-05 14:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
docs: Fix incorrect macro name in GType tutorial (977 bytes, patch)
2017-10-05 14:41 UTC, Philip Withnall
committed Details | Review

Description schaefer.pp 2016-08-26 22:17:51 UTC
On the page [1] there is an example using `iface = VIEWER_EDITABLE_GET_INTERFACE (self);` but the code generated by `G_DECLARE_INTERFACE()` defines ...GET_IFACE().


[1] https://developer.gnome.org/gobject/stable/gtype-non-instantiable-classed.html
Comment 1 Philip Withnall 2017-10-05 14:41:12 UTC
Good catch, thanks. Fixed in master.

The following fix has been pushed:
121b1e5 docs: Fix incorrect macro name in GType tutorial
Comment 2 Philip Withnall 2017-10-05 14:41:17 UTC
Created attachment 360966 [details] [review]
docs: Fix incorrect macro name in GType tutorial

Signed-off-by: Philip Withnall <withnall@endlessm.com>