[gtk-doc/gtk-doc-for-gtk4: 17/23] Add actions to the navigation header



commit 901db14f36e52d39d4b4e1b50fb5438f11c27f33
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 23 04:11:57 2019 +0000

    Add actions to the navigation header

 gtk-doc.xsl | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index 1a7a1ee..c5d3a9d 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -399,6 +399,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
     <xsl:variable name="sect_derived_interfaces" select="./refsect1[@role='derived_interfaces']"/>
     <xsl:variable name="sect_implementations" select="./refsect1[@role='implementations']"/>
     <xsl:variable name="sect_properties" select="./refsect1[@role='properties']"/>
+    <xsl:variable name="sect_actions" select="./refsect1[@role='actions']"/>
     <xsl:variable name="sect_child_properties" select="./refsect1[@role='child_properties']"/>
     <xsl:variable name="sect_style_properties" select="./refsect1[@role='style_properties']"/>
     <xsl:variable name="sect_signal_proto" select="./refsect1[@role='signal_proto']"/>
@@ -481,6 +482,12 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
                     <xsl:value-of select="./refsect1[@role='signal_proto']/title"/>
                   </a></span>
                 </xsl:if>
+                <xsl:if test="count($sect_actions) > 0">
+                  <span id="nav_properties">&#160;&#160;<span class="dim">|</span>&#160;
+                  <a href="#{$section_id}.actions" class="shortcut">
+                    <xsl:value-of select="./refsect1[@role='actions']/title"/>
+                  </a></span>
+                </xsl:if>
               </xsl:when>
               <!-- this is not yet very nice, as it requires all glossdic/indexdiv
                    elements having a anchor element. maybe we can customize the xsl


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