From 2c51db72113b0308303271b04914157751d4b31f Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 14 Nov 2012 15:46:22 +0000 Subject: Use fast scaling in cairo to resize selections - SL #4208 Signed-off-by: Gonzalo Odiard --- (limited to 'Desenho.py') diff --git a/Desenho.py b/Desenho.py index e05a907..01d5002 100644 --- a/Desenho.py +++ b/Desenho.py @@ -685,8 +685,6 @@ class Desenho: @param pixbuf_copy -- For import image """ - widget.desenha = True - dx = int(coords[0] - widget.oldx) dy = int(coords[1] - widget.oldy) @@ -704,18 +702,7 @@ class Desenho: if width_scale < 0 or height_scale < 0: return - # Add a timer for resize or update it if there is one already: - if self._resize_timer is not None: - GObject.source_remove(self._resize_timer) - self._resize_timer = GObject.timeout_add(RESIZE_DELAY, - self._do_resize, widget, width_scale, height_scale) - - def _do_resize(self, widget, width_scale, height_scale): -# """Do the resize calculation. -# """ - widget.desenha = True widget.resize_selection_surface(width_scale, height_scale) - widget.queue_draw() def freeform(self, widget, coords, temp, fill, param=None): """Draw polygon. -- cgit v0.9.1