diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2012-09-28 13:18:48 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuq@laptop.org> | 2012-09-28 14:15:01 (GMT) |
commit | af31a44d9b5247d56a7a468102369d3314e1a2a3 (patch) | |
tree | 0ca5f53ab843c807d0890454ed094c129a0c30d7 /browser.py | |
parent | 49495aa4584035a97754c75b124a3c326d9f8db9 (diff) |
Button to clear the url entry SL #3499
Added an 'X' to clear the url entry easily. This button is shown when
the url entry has focus and the user is not reading a .pdf
webpage. When the focus is left the icon changes again to the correct
one (reload, stop loading or none)
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'browser.py')
-rw-r--r-- | browser.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -344,6 +344,11 @@ class TabbedView(BrowserNotebook): self._append_tab(browser) browser.set_history(tab_history) + def is_current_page_pdf(self): + index = self.get_current_page() + current_page = self.get_nth_page(index) + return isinstance(current_page, PDFTabPage) + Gtk.rc_parse_string(''' style "browse-tab-close" { |