diff options
author | Reinier Heeres <rwh@rwh.(none)> | 2008-03-02 08:46:22 (GMT) |
---|---|---|
committer | Reinier Heeres <rwh@rwh.(none)> | 2008-03-02 08:46:22 (GMT) |
commit | d26de19e9126409379c0c56f24415b8e5e6649cc (patch) | |
tree | 3aa5c979a991a8292ab40c241c5c4331a7f37fe2 /readtoolbar.py | |
parent | 4f60fca6794eb7a6190ae760a823f9ce7f4cac95 (diff) |
Zoom-in/out with square/check #6165
Diffstat (limited to 'readtoolbar.py')
-rw-r--r-- | readtoolbar.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/readtoolbar.py b/readtoolbar.py index 8d610ea..44a032d 100644 --- a/readtoolbar.py +++ b/readtoolbar.py @@ -349,21 +349,30 @@ class ViewToolbar(gtk.Toolbar): self._zoom_spin_notify_value_handler = self._zoom_spin.connect( 'notify::value', self._zoom_spin_notify_value_cb) - def _zoom_in_cb(self, button): + def zoom_in(self): self._evince_view.props.sizing_mode = evince.SIZING_FREE self._evince_view.zoom_in() self._update_zoom_buttons() - - def _zoom_out_cb(self, button): + + def _zoom_in_cb(self, button): + self.zoom_in() + + def zoom_out(self): self._evince_view.props.sizing_mode = evince.SIZING_FREE self._evince_view.zoom_out() self._update_zoom_buttons() + + def _zoom_out_cb(self, button): + self.zoom_out() - def _zoom_to_width_cb(self, button): + def zoom_to_width(self): self._evince_view.props.sizing_mode = evince.SIZING_FIT_WIDTH self.emit('needs-update-size') self._update_zoom_buttons() + def _zoom_to_width_cb(self, button): + self.zoom_to_width() + def _update_zoom_buttons(self): self._zoom_in.props.sensitive = self._evince_view.can_zoom_in() self._zoom_out.props.sensitive = self._evince_view.can_zoom_out() |