Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/AbiWordActivity.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2010-07-02 05:48:21 (GMT)
committer Bernie Innocenti <bernie@codewiz.org>2010-10-01 20:29:35 (GMT)
commit4b517db5ba47547004279668099553f5bff21b40 (patch)
tree67fd7a06f49e08c7b9b16b984e3d904e77568998 /AbiWordActivity.py
parent6ed3dbd36c0dc3171e19106ff9a5b2bff050aeb7 (diff)
Let abiword change zoom_percentage value before using it #1121
Diffstat (limited to 'AbiWordActivity.py')
-rw-r--r--AbiWordActivity.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/AbiWordActivity.py b/AbiWordActivity.py
index f6c54fa..4f585af 100644
--- a/AbiWordActivity.py
+++ b/AbiWordActivity.py
@@ -186,10 +186,13 @@ class AbiWordActivity (activity.Activity):
abi.disconnect(self._zoom_handler)
# XXX workarond code to redraw abi document on every resize, see #1121
+ # looks like original #1121 issue is already not reproducible in
+ # environments like fc13 but we still need it for older ones
def size_allocate_cb(abi, alloc):
- zoom = abi.get_zoom_percentage()
- abi.set_zoom_percentage(zoom)
- abi.set_zoom_percentage(zoom)
+ def idle_cb():
+ zoom = abi.get_zoom_percentage()
+ abi.set_zoom_percentage(zoom)
+ gobject.idle_add(idle_cb)
abi.connect('size-allocate', size_allocate_cb)
def __map_event_cb(self, event, activity):