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>
@phuhl
Copy link

phuhl commented Feb 11, 2019

Hey @cjordan, for me it worked nicely... Did you delete .stack-work in your working directory? That helped for me...

@cjordan
Copy link

cjordan commented Feb 11, 2019

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!

@LeifW
Copy link
Author

LeifW commented Feb 25, 2019

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

@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