diff options
author | Aleksey 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) |
commit | 718427207218a4666eb3820b4e535eade3de854a (patch) | |
tree | 302ccfcd0797a963a90fc8a7b8730007319ed7f2 /svgcard.py | |
parent | 75b12ca76bc15e43d07d40a5da6b1a2f3a35a964 (diff) |
#6617 make "Create" tab screen-resolution independent
Diffstat (limited to 'svgcard.py')
-rw-r--r-- | svgcard.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |