From ce3b836f4b95558ee456ec3290aa8f2dae75b121 Mon Sep 17 00:00:00 2001 From: Marc Maurer Date: Thu, 12 Jul 2007 22:23:29 +0000 Subject: Connect to the zoom signal to show the correct zoom level --- (limited to 'AbiWordActivity.py') diff --git a/AbiWordActivity.py b/AbiWordActivity.py index a21a4bc..ab4ee3b 100644 --- a/AbiWordActivity.py +++ b/AbiWordActivity.py @@ -95,12 +95,16 @@ class AbiWordActivity (Activity): def _map_cb(self, activity): logger.debug('_map_cb') - + # always make sure at least 1 document is loaded (bad bad widget design) if not self._file_opened: logger.debug("Loading empty doc") self.abiword_canvas.load_file('', ''); + # set the initial zoom to page width; note: always do this AFTER a document + # has been opened + self.abiword_canvas.zoom_width() + # activity sharing pservice = presenceservice.get_instance() -- cgit v0.9.1