Codebase list sugar-read-activity / 01d8562
Enable/disable "zoom-to-fit" and "zoom-to-original" buttons depending on file Use the same criteria as zoom-to-width button Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Gonzalo Odiard 11 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
279279 self._zoom_in.props.sensitive = self._view.can_zoom_in()
280280 self._zoom_out.props.sensitive = self._view.can_zoom_out()
281281 self._zoom_to_width.props.sensitive = self._view.can_zoom_to_width()
282 self._zoom_to_fit.props.sensitive = self._view.can_zoom_to_width()
283 self._zoom_to_original.props.sensitive = self._view.can_zoom_to_width()
282284
283285 def _zoom_to_fit_cb(self, menu_item):
284286 self._view.zoom_to_best_fit()