Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/svgcard.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2014-07-14 18:20:21 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-07-14 18:36:06 (GMT)
commit94d042401968e7ad8be35ad34d9a72e0e4b20e3f (patch)
treed8f896d2eba92c8a3a697c73f0ffdef71c16f359 /svgcard.py
parent84d843b4981b664cb171518ca14b0a91a227ea88 (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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/svgcard.py b/svgcard.py
index d0d433f..b7bbfe8 100644
--- a/svgcard.py
+++ b/svgcard.py
@@ -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']