diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-07-17 14:17:19 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-07-17 14:17:19 (GMT) |
commit | 845bbb495eebf064e3eaa63f992423585b3e258e (patch) | |
tree | 70a6ac74cbbfe9b0ef83e92c2d02b5d677a55ca9 | |
parent | f2a6a028b84b5063664fad408d7a10298383dc55 (diff) |
Allow change the image in a card
-rw-r--r-- | svgcard.py | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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() |