Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser.py
diff options
context:
space:
mode:
authorManuel 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)
commitaf31a44d9b5247d56a7a468102369d3314e1a2a3 (patch)
tree0ca5f53ab843c807d0890454ed094c129a0c30d7 /browser.py
parent49495aa4584035a97754c75b124a3c326d9f8db9 (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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/browser.py b/browser.py
index fab8012..53acb7a 100644
--- a/browser.py
+++ b/browser.py
@@ -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" {