summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-06-23 04:11:57 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-10-01 14:51:04 -0400
commit6357e9fc598c8e1eb46b04b8f5aa8377a3d9cb16 (patch)
tree160ce7a4aba9097a56d798757cbf1d439d3379d7
parent3dc235b6fe1d2edcf1caa51e444b63319b7622a4 (diff)
downloadgtk-doc-6357e9fc598c8e1eb46b04b8f5aa8377a3d9cb16.tar.gz
Add actions to the navigation header
-rw-r--r--gtk-doc.xsl7
1 files changed, 7 insertions, 0 deletions
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