Problem with index entries for style properties

View: New views
5 Messages — Rating Filter:   Alert me  

Problem with index entries for style properties

by Matthias Clasen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am seeing a problem with index entries for child properties and
style properties.

The links in the the index point to the name as for a regular property, e.g.
GtkBox--pack-type or GtkDialog--content-area-spacing, but the ids that
are generated are
GtkBox--c-pack-type and GtkDialog--s-content-area-spacing. Looking at
the generated xml
in  api-index-full.xml, I see

<indexentry><primaryie linkends="GtkBox--c-pack-type"><link
linkend="GtkBox--pack-type">GtkBox:pack-type</link></primaryie></indexentry>

The primaryie linkends are correct, but there is a link inside it with
the wrong linkend, and the
html link seems to be generated from the link element, not the
primaryie element.

This is with gtk-doc 1.11, ie the index is generated in perl by
gtkdoc-mkdb, not in xsl.


Matthias
_______________________________________________
gtk-doc-list mailing list
gtk-doc-list@...
http://mail.gnome.org/mailman/listinfo/gtk-doc-list

Re: Problem with index entries for style properties

by Matthias Clasen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 21, 2008 at 10:16 PM, Matthias Clasen
<matthias.clasen@...> wrote:

> I am seeing a problem with index entries for child properties and
> style properties.
>
> The links in the the index point to the name as for a regular property, e.g.
> GtkBox--pack-type or GtkDialog--content-area-spacing, but the ids that
> are generated are
> GtkBox--c-pack-type and GtkDialog--s-content-area-spacing. Looking at
> the generated xml
> in  api-index-full.xml, I see
>
> <indexentry><primaryie linkends="GtkBox--c-pack-type"><link
> linkend="GtkBox--pack-type">GtkBox:pack-type</link></primaryie></indexentry>
>
> The primaryie linkends are correct, but there is a link inside it with
> the wrong linkend, and the
> html link seems to be generated from the link element, not the
> primaryie element.
>
> This is with gtk-doc 1.11, ie the index is generated in perl by
> gtkdoc-mkdb, not in xsl.
>

It appears changing

        my $xref = &MakeXRef ($symbol);

to

        my $xref = &MakeXRef ($id, $symbol);

In OutputIndex in gtkdoc-mkdb fixes this problem.
_______________________________________________
gtk-doc-list mailing list
gtk-doc-list@...
http://mail.gnome.org/mailman/listinfo/gtk-doc-list

Re: Problem with index entries for style properties

by Matthias Clasen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 21, 2008 at 10:31 PM, Matthias Clasen

> It appears changing
>
>        my $xref = &MakeXRef ($symbol);
>
> to
>
>        my $xref = &MakeXRef ($id, $symbol);
>
> In OutputIndex in gtkdoc-mkdb fixes this problem.
>

Grr, following up on myself again...

but this change indroduces a new problem for all-caps symbols, where
we now end up with

<indexentry><primaryie linkends="GTK-BINARY-AGE--CAPS"><link
linkend="GTK-BINARY-AGE--CAPS--CAPS">GTK_BINARY_AGE</link></primaryie></indexentry>

because CreateValidSGMLID apparently doesn't detect if an all-caps id
already has a -CAPS suffix.
_______________________________________________
gtk-doc-list mailing list
gtk-doc-list@...
http://mail.gnome.org/mailman/listinfo/gtk-doc-list

Re: Problem with index entries for style properties

by Matthias Clasen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've put a working patch in

http://bugzilla.gnome.org/show_bug.cgi?id=562064
_______________________________________________
gtk-doc-list mailing list
gtk-doc-list@...
http://mail.gnome.org/mailman/listinfo/gtk-doc-list

Re: Problem with index entries for style properties

by Stefan Kost :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Matthias,

Matthias Clasen schrieb:
> I've put a working patch in
>
> http://bugzilla.gnome.org/show_bug.cgi?id=562064

many thanks, will look at this in the next days. Quite busy now. Too bad that I
just did a release.

Stefan
_______________________________________________
gtk-doc-list mailing list
gtk-doc-list@...
http://mail.gnome.org/mailman/listinfo/gtk-doc-list