Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2014-07-17 14:17:19 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-07-17 14:17:19 (GMT)
commit845bbb495eebf064e3eaa63f992423585b3e258e (patch)
tree70a6ac74cbbfe9b0ef83e92c2d02b5d677a55ca9
parentf2a6a028b84b5063664fad408d7a10298383dc55 (diff)
Allow change the image in a card
-rw-r--r--svgcard.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/svgcard.py b/svgcard.py
index ccc185d..c89ff5d 100644
--- a/svgcard.py
+++ b/svgcard.py
@@ -205,13 +205,7 @@ class SvgCard(Gtk.EventBox):
def set_image_path(self, image_path):
self._image_path = image_path
- if self._image_path is not None:
- if self.jpeg is None:
- image_size = self.size - style.DEFAULT_SPACING * 2
- self.jpeg = GdkPixbuf.Pixbuf.new_from_file_at_size(
- self._image_path, image_size, image_size)
- else:
- self.jpeg = None
+ self.jpeg = None
self._cached_surface[True] = None
self.queue_draw()