diff tools/svg2code.py @ 78:3645e29e4986

Add runtime for Xlib.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 20 Aug 2008 23:33:04 +0800
parents 35c2b7ba140b
children e548221c04eb
line wrap: on
line diff
--- a/tools/svg2code.py	Wed Aug 20 00:32:11 2008 +0800
+++ b/tools/svg2code.py	Wed Aug 20 23:33:04 2008 +0800
@@ -51,7 +51,8 @@
 
     href = linear.getAttributeNS(xlinkns, 'href').strip()
     if href and href[0] == '#':
-        print >> codefo, 'REF_STOPS([%s], [%s])dnl' % (linear_id, href[1:])
+        print >> codefo, 'REF_STOPS_LINEAR([%s], [%s])dnl' % (
+            linear_id, href[1:])
         pass
     pass
 
@@ -75,7 +76,8 @@
 
     href = radial.getAttributeNS(xlinkns, 'href').strip()
     if href[0] == '#':
-        print >> codefo, 'REF_STOPS([%s], [%s])dnl' % (radial_id, href[1:])
+        print >> codefo, 'REF_STOPS_RADIAL([%s], [%s])dnl' % (
+            radial_id, href[1:])
         pass
     pass