8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free# Written by Tavmjong Bah
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free self.OptionParser.add_option("-s", "--size", action="store", type="int", dest="icon_size", default="16", help="Icon size")
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free root.set("viewBox", "0 0 " + str(size) + " " + str(size) )
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free namedview = root.find(inkex.addNS('namedview', 'sodipodi'))
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free namedview = inkex.etree.SubElement( root, inkex.addNS('namedview', 'sodipodi') );
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free namedview.set(inkex.addNS('document-units', 'inkscape'), 'px')
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free namedview.set(inkex.addNS('zoom', 'inkscape'), str(256.0/size) )
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free namedview.set(inkex.addNS('cx', 'inkscape'), str(size/2.0) )
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free namedview.set(inkex.addNS('cy', 'inkscape'), str(size/2.0) )
8ac705ee842a9087042c9ed7d126f39cadac9cectavmjong-free namedview.set(inkex.addNS('grid-bbox', 'inkscape'), "true" )