Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/AbiWordActivity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-05-02 20:58:18 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-05-02 20:58:18 (GMT)
commitda10d07f7100bd5b7e322db44d7e2407408dbe6b (patch)
tree7c1cdc3f89b42cb31b485276b55073f0a19eac53 /AbiWordActivity.py
parentfa52f2684479170e3c8c988ca82f6d4f70ec8c77 (diff)
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 <gonzalo@laptop.org>
Diffstat (limited to 'AbiWordActivity.py')
-rw-r--r--AbiWordActivity.py5
1 files changed, 5 insertions, 0 deletions
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')