[gnome-icon-theme] Accept any layer whose name starts with "baseplate".



commit bf22beb1883cfa2986fdf8a2c05a3b512290bec6
Author: Benjamin Berg <benjamin sipsolutions net>
Date:   Tue Mar 30 00:10:20 2010 +0200

    Accept any layer whose name starts with "baseplate".

 render-icon-theme.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/render-icon-theme.py b/render-icon-theme.py
index 4e486d5..0502a92 100755
--- a/render-icon-theme.py
+++ b/render-icon-theme.py
@@ -58,7 +58,7 @@ class ContentHandler(xml.sax.ContentHandler):
                 return
         elif self.inside[-1] == self.SVG:
             if (name == "g" and attrs.has_key('inkscape:groupmode') and attrs.has_key('inkscape:label')
-               and attrs['inkscape:groupmode'] == 'layer' and attrs['inkscape:label'] == 'baseplate'):
+               and attrs['inkscape:groupmode'] == 'layer' and attrs['inkscape:label'].startswith('baseplate')):
                 self.stack.append(self.LAYER)
                 self.inside.append(self.LAYER)
                 self.context = None



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