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 669417 - Duplicate IDs generated for unions registered as boxed types
Duplicate IDs generated for unions registered as boxed types
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.18
Other All
: Normal normal
: 1.20
Assigned To: gtk-doc maintainers
gtk-doc maintainers
: 690793 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-02-05 15:46 UTC by Philip Chimento
Modified: 2014-02-08 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that fixes the problem (1.33 KB, patch)
2012-02-05 15:53 UTC, Philip Chimento
committed Details | Review
mkdb: Prevent duplicate IDs in boxed union types (1.34 KB, patch)
2014-02-08 16:37 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Philip Chimento 2012-02-05 15:46:58 UTC
When registering a C union type as a GBoxed type, let's call it FooObject, Gtk-Doc generates

<anchor id="FooObject"/>

in the synopsis of the page, but the documentation of the FooObject union also gets id="FooObject". This produces a whole spew of warnings about duplicate IDs when converting the generated XML to HTML.

This is handled properly for structs though, so here's a patch that does the same thing for unions.
Comment 1 Philip Chimento 2012-02-05 15:53:30 UTC
Created attachment 206849 [details] [review]
Patch that fixes the problem
Comment 2 Dan Winship 2013-01-03 20:29:37 UTC
*** Bug 690793 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-08 16:37:28 UTC
The following fix has been pushed:
9cab897 mkdb: Prevent duplicate IDs in boxed union types
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-08 16:37:34 UTC
Created attachment 268507 [details] [review]
mkdb: Prevent duplicate IDs in boxed union types

When registering a C union as a GBoxed type, Gtk-Doc generates
duplicate IDs. This handles the problem in the same way as structs
handle it.

Fixes bgo#669417.