From da10d07f7100bd5b7e322db44d7e2407408dbe6b Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 02 May 2012 20:58:18 +0000 Subject: Queue draw on toolbar resize to avoid glitches No all the documents have problems, but I saw glitches with documents with tables. This patch is a simplified version of the patch removed with 17356abcd7e277478be6398f8bcc4c3cb098cd0b but use queue_draw instead of changing the zoom, then do not have the problem with seting bad zoom at activity startup. Signed-off-by: Gonzalo Odiard --- (limited to 'AbiWordActivity.py') diff --git a/AbiWordActivity.py b/AbiWordActivity.py index beef626..b272f04 100644 --- a/AbiWordActivity.py +++ b/AbiWordActivity.py @@ -158,6 +158,11 @@ class AbiWordActivity(activity.Activity): self.abiword_canvas.show() self.connect_after('map-event', self.__map_activity_event_cb) + self.abiword_canvas.connect('size-allocate', self.size_allocate_cb) + + def size_allocate_cb(self, abi, alloc): + gobject.idle_add(abi.queue_draw) + def __map_event_cb(self, event, activity): logger.debug('__map_event_cb') -- cgit v0.9.1