Skip to content

Instantly share code, notes, and snippets.

@LeifW
Created January 26, 2019 22:40
Show Gist options
  • Save LeifW/ba67140025984eeb1e6e192440faeaf9 to your computer and use it in GitHub Desktop.
Save LeifW/ba67140025984eeb1e6e192440faeaf9 to your computer and use it in GitHub Desktop.
Patch for gtk3 package .gir file
#!/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()
<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>
@LeifW
Copy link
Author

LeifW commented Feb 25, 2019

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