Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-08-17 06:57:13 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-08-17 06:57:13 (GMT)
commitd5d0c1543163e14aedbc86f33b0cb75c90933f3d (patch)
treec64993aea29ff9c655ad82d354e503af98e1f366 /utils.py
parent1971e019de1f3aec8fc295aeca792efb36fba22e (diff)
adding overlay to thumbnail view
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index c8ef423..1914aa8 100644
--- a/utils.py
+++ b/utils.py
@@ -163,9 +163,10 @@ def get_pixbuf_from_journal(dsobject, w, h):
return pixbuf
-def genblank(w, h, colors):
+def genblank(w, h, colors, stroke_width=1.0):
svg = SVG()
svg.set_colors(colors)
+ svg.set_stroke_width(stroke_width)
svg_string = svg.header(w, h)
svg_string += svg.footer()
return svg_string
@@ -215,7 +216,7 @@ class SVG:
svg_string += " ry=\"%f\"\n" % (ry)
svg_string += " x=\"%f\"\n" % (x)
svg_string += " y=\"%f\"\n" % (y)
- self.set_stroke_width(1.0)
+ self.set_stroke_width(self._stroke_width)
svg_string += self._svg_style()
return svg_string