Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/svgcard.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-01-21 17:32:44 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-01-21 17:32:44 (GMT)
commit718427207218a4666eb3820b4e535eade3de854a (patch)
tree302ccfcd0797a963a90fc8a7b8730007319ed7f2 /svgcard.py
parent75b12ca76bc15e43d07d40a5da6b1a2f3a35a964 (diff)
#6617 make "Create" tab screen-resolution independent
Diffstat (limited to 'svgcard.py')
-rw-r--r--svgcard.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/svgcard.py b/svgcard.py
index 5ba0e8d..d0ac594 100644
--- a/svgcard.py
+++ b/svgcard.py
@@ -25,6 +25,8 @@ import gtk
import pango
import logging
+import theme
+
_logger = logging.getLogger('memorize-activity')
class SvgCard(gtk.DrawingArea):
@@ -85,7 +87,8 @@ class SvgCard(gtk.DrawingArea):
pixbuf = self._read_icon_data(self.current_face)
self.window.draw_pixbuf(None, pixbuf, 0, 0, 0, 0)
if self.show_jpeg:
- self.window.draw_pixbuf(None, self.jpeg, 0, 0, 11, 11)
+ self.window.draw_pixbuf(None, self.jpeg, 0, 0,
+ theme.CARD_PAD, theme.CARD_PAD)
if self.show_text:
widget.window.draw_layout(gc, x=6, y=self.current_layout_position, layout=self.current_layout, foreground=gtk.gdk.color_parse(self.current_text_color))
return False