diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-07-14 18:20:21 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-07-14 18:36:06 (GMT) |
commit | 94d042401968e7ad8be35ad34d9a72e0e4b20e3f (patch) | |
tree | d8f896d2eba92c8a3a697c73f0ffdef71c16f359 /svgcard.py | |
parent | 84d843b4981b664cb171518ca14b0a91a227ea88 (diff) |
Remove theme.py
The package had only common definitions.
In some cases, the variables was not used at all,
other were used in only one place. Other could be replaced by constants
on sugar3.style
The variables were moved to the package when are used.
Now the constanst are idependient on the resolution
as the constants defined on style.
Diffstat (limited to 'svgcard.py')
-rw-r--r-- | svgcard.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -31,7 +31,6 @@ from gi.repository import PangoCairo from sugar3.util import LRU from sugar3.graphics import style -import theme import face import speak.voice import model @@ -156,8 +155,9 @@ class SvgCard(Gtk.EventBox): cache_context.restore() if self.jpeg is not None and flipped: - Gdk.cairo_set_source_pixbuf(cache_context, self.jpeg, - theme.SVG_PAD, theme.SVG_PAD) + Gdk.cairo_set_source_pixbuf( + cache_context, self.jpeg, + style.DEFAULT_SPACING, style.DEFAULT_SPACING) cache_context.paint() text_props = self.props[flipped and 'front_text' or 'back_text'] |