Created
January 26, 2019 22:40
-
-
Save LeifW/ba67140025984eeb1e6e192440faeaf9 to your computer and use it in GitHub Desktop.
Patch for gtk3 package .gir file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/#pxsl | |
stylesheet -version=1.0 -xmlns:xsl=http://www.w3.org/1999/XSL/Transform | |
output -indent=yes | |
template -match=<<*[@name = 'get_row_header_cells' or @name = 'get_column_header_cells']>> | |
template @*|node() | |
copy | |
apply-templates @*|node() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output indent="yes"/> | |
<xsl:template match="*[@name = 'get_row_header_cells' or @name = 'get_column_header_cells']"/> | |
<xsl:template match="@*|node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@*|node()"/> | |
</xsl:copy> | |
</xsl:template> | |
</xsl:stylesheet> | |
Sorry, it seems GitHub doesn't notify me for comments on gists. The pxsl file isn't used, it's just the source file for the .xslt file in a more convenient syntax. The pxsl tool converts that into the xslt xml: https://github.com/tmoertel/pxsl-tools
It just says to delete every element with a name="get_row_header_cells"
or aname="get_column_header_cells"
attribute - you could do that with a text editor instead if you like.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That definitely helped! I'm now struggling with some extra-deps, but I think I can work that out on my own -- thanks for the tip!