From 4966a2db4c3add44fc23e141fff61f438786c0ca Mon Sep 17 00:00:00 2001 From: Ariel Calzada Date: Tue, 08 Jan 2013 12:58:59 +0000 Subject: issue dxo #310 and #2769 Custom start/homepage for Browse --- (limited to 'webtoolbar.py') diff --git a/webtoolbar.py b/webtoolbar.py index dc0b3de..35a699a 100644 --- a/webtoolbar.py +++ b/webtoolbar.py @@ -252,9 +252,6 @@ class PrimaryToolbar(ToolbarBase): 'add-link': (GObject.SignalFlags.RUN_FIRST, None, ([])), - 'go-home': (GObject.SignalFlags.RUN_FIRST, - None, - ([])), } def __init__(self, tabbed_view, act): @@ -270,12 +267,6 @@ class PrimaryToolbar(ToolbarBase): activity_button = ActivityToolbarButton(self._activity) toolbar.insert(activity_button, 0) - self._go_home = ToolButton('go-home') - self._go_home.set_tooltip(_('Home page')) - self._go_home.connect('clicked', self._go_home_cb) - toolbar.insert(self._go_home, -1) - self._go_home.show() - self.entry = WebEntry() self.entry.set_icon_from_name(iconentry.ICON_ENTRY_SECONDARY, 'browse-dialog-cancel') @@ -451,7 +442,7 @@ class PrimaryToolbar(ToolbarBase): is_webkit_browser = isinstance(self._browser, Browser) self._link_add.props.sensitive = is_webkit_browser - self._go_home.props.sensitive = is_webkit_browser + #self._go_home.props.sensitive = is_webkit_browser if is_webkit_browser: self._reload_session_history() @@ -463,9 +454,6 @@ class PrimaryToolbar(ToolbarBase): self.entry.props.address = effective_url self._browser.grab_focus() - def _go_home_cb(self, button): - self.emit('go-home') - def _go_back_cb(self, button): self._browser.go_back() -- cgit v0.9.1