diff options
author | Simon Schampijer <simon@schampijer.de> | 2012-01-06 20:20:29 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2012-01-07 12:35:18 (GMT) |
commit | 3a53f32c1dd8cbb8a39a0b28648fcee5b1fc2534 (patch) | |
tree | f47a8b1d18911185f081b27f46ca0e4f872aa93b /webactivity.py | |
parent | d50001dc6f26b31e39689a20a6540ad4f2e525ba (diff) |
Show link information when hovering over link
When hovering over a link we show the link information at
the lower left corner, like Epiphany does. Needs styling
to be eve nicer.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'webactivity.py')
-rw-r--r-- | webactivity.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/webactivity.py b/webactivity.py index 092a8e3..34f9b59 100644 --- a/webactivity.py +++ b/webactivity.py @@ -401,9 +401,8 @@ class WebActivity(activity.Activity): logging.debug('########## reading %s', data) self._tabbed_view.set_history(self.model.data['history']) for number, tab in enumerate(self.model.data['currents']): - scrolled_window = self._tabbed_view.get_nth_page(number) - browser = scrolled_window.get_child() - browser.set_history_index(tab['history_index']) + tab_page = self._tabbed_view.get_nth_page(number) + tab_page.browser.set_history_index(tab['history_index']) self._tabbed_view.set_current_page(self.model.data['current_tab']) elif self.metadata['mime_type'] == 'text/uri-list': @@ -437,8 +436,8 @@ class WebActivity(activity.Activity): self.model.data['currents'] = [] for n in range(0, self._tabbed_view.get_n_pages()): - scrolled_window = self._tabbed_view.get_nth_page(n) - n_browser = scrolled_window.get_child() + tab_page = self._tabbed_view.get_nth_page(n) + n_browser = tab_page.browser if n_browser != None: uri = n_browser.get_uri() history_index = n_browser.get_history_index() |