[gtk-doc] Make top actually go to the top of the section



commit 7c693e13d0e35fae0fb732f9ead105bf8155ad60
Author: William Jon McCann <william jon mccann gmail com>
Date:   Tue Jul 16 18:49:50 2013 -0400

    Make top actually go to the top of the section
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696570

 gtk-doc-single.xsl |    4 +---
 gtk-doc.xsl        |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk-doc-single.xsl b/gtk-doc-single.xsl
index b9fd576..22b0438 100644
--- a/gtk-doc-single.xsl
+++ b/gtk-doc-single.xsl
@@ -234,10 +234,8 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
         <tr valign="middle">
           <td width="100%" align="left">
             <!--<xsl:if test="name()='refentry'"-->
+            <a href="#" class="shortcut">Top</a>
             <xsl:if test="count($sections) > 0">
-              <xsl:if test="count($sect_synopsis) > 0">
-                <a href="#{$section_id}.synopsis" class="shortcut">Top</a>
-              </xsl:if>
               <xsl:if test="count($sect_desc) > 0">
                 &#160;|&#160;
                 <a href="#{$section_id}.description" class="shortcut">
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index 2cacf27..3bc3934 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -469,9 +469,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
             <!--<xsl:if test="name()='refentry'"-->
             <xsl:choose>
               <xsl:when test="count($refsections) > 0">
-                <xsl:if test="count($sect_synopsis) > 0">
-                  <a href="#{$section_id}.synopsis" class="shortcut">Top</a>
-                </xsl:if>
+                <a href="#" class="shortcut">Top</a>
                 <xsl:if test="count($sect_desc) > 0">
                   &#160;|&#160;
                   <a href="#{$section_id}.description" class="shortcut">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]