diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-05-02 13:39:32 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-05-02 20:03:24 (GMT) |
commit | 17356abcd7e277478be6398f8bcc4c3cb098cd0b (patch) | |
tree | 2406cf270591886451896b36438b4c557552ac99 | |
parent | ad7d1ad4ca4c9ab9460f59acc6e5cc2606970f45 (diff) |
Startup the activity with the canvas zoom set to page width
The patch remove a old workaround no longer needed from fedora 13
but having a bad behaviour now. The initial zoom was set to a
unwanted value instead of page width.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | AbiWordActivity.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/AbiWordActivity.py b/AbiWordActivity.py index 8e94205..3861365 100644 --- a/AbiWordActivity.py +++ b/AbiWordActivity.py @@ -149,24 +149,6 @@ class AbiWordActivity(activity.Activity): self.abiword_canvas.show() self.connect_after('map-event', self.__map_activity_event_cb) - self._zoom_handler = self.abiword_canvas.connect("zoom", - self.__zoom_cb) - - def __zoom_cb(self, abi, zoom): - 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): - - 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): logger.debug('__map_event_cb') |