diff options
author | Tomeu Vizoso <tomeu@zviratko.(none)> | 2009-07-08 13:49:49 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@zviratko.(none)> | 2009-07-08 13:49:49 (GMT) |
commit | fab5b0f0f321fbea2782a7af2734a03962225c38 (patch) | |
tree | bc5044088b14a789fb7d360e6387dde98d4f6950 /viewtoolbar.py | |
parent | ba9a2ad7a188d571d3f0aa8172c71db9a2b7741a (diff) |
Open new windows in tabs
Diffstat (limited to 'viewtoolbar.py')
-rw-r--r-- | viewtoolbar.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/viewtoolbar.py b/viewtoolbar.py index 2b08360..3564269 100644 --- a/viewtoolbar.py +++ b/viewtoolbar.py @@ -1,4 +1,5 @@ # Copyright (C) 2007, One Laptop Per Child +# Copyright (C) 2009, Tomeu Vizoso # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,8 +28,6 @@ class ViewToolbar(gtk.Toolbar): self._activity = activity self._activity.tray.connect('unmap', self.__unmap_cb) self._activity.tray.connect('map', self.__map_cb) - - self._browser = self._activity._browser self.zoomout = ToolButton('zoom-out') self.zoomout.set_tooltip(_('Zoom out')) @@ -60,11 +59,13 @@ class ViewToolbar(gtk.Toolbar): self.traybutton.show() def __zoomin_clicked_cb(self, button): - self._browser.zoom_in() - + tabbed_view = self._activity.get_canvas() + tabbed_view.props.current_browser.zoom_in() + def __zoomout_clicked_cb(self, button): - self._browser.zoom_out() - + tabbed_view = self._activity.get_canvas() + tabbed_view.props.current_browser.zoom_out() + def __fullscreen_clicked_cb(self, button): self._activity.fullscreen() |