Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/svgcard.py
diff options
context:
space:
mode:
Diffstat (limited to 'svgcard.py')
-rw-r--r--svgcard.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/svgcard.py b/svgcard.py
index c89ff5d..6925084 100644
--- a/svgcard.py
+++ b/svgcard.py
@@ -99,6 +99,13 @@ class SvgCard(Gtk.EventBox):
self.add(self.workspace)
self.show_all()
+ def resize(self, new_size):
+ self.size = new_size
+ self.set_size_request(self.size, self.size)
+ self._cached_surface = {True: None, False: None}
+ self.jpeg = None
+ self.text_layouts = [None, None]
+
def __draw_cb(self, widget, context):
flipped = self.flipped
highlighted = self._highlighted