diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-03-23 12:03:17 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-03-28 19:24:05 (GMT) |
commit | 273cab7ffc0c0b4ae17d5844bc1d9c0fc06fef19 (patch) | |
tree | 256586e50b0e0e01becec0aeab3a0afb27f459aa /pdfviewer.py | |
parent | aa109ec239afe692c0ea471670647e0c886e0a92 (diff) |
Update progress bar and stop/reload buttons when switching tabs
Calling the _set_status and _set_progress methods in the web toolbar
directly when a new tab is activated.
Also the callback for load-status is disconnected now in the previous
tab, like the other callbacks.
Removed the update of the navigation buttons when the loading status
changes. This is only needed when the adress changes or when the tabs
are switched.
Removed the title set to None when loading status chenges, this was
giving the following Gtk error:
Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'pdfviewer.py')
-rw-r--r-- | pdfviewer.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pdfviewer.py b/pdfviewer.py index c7e2452..ef6a6ea 100644 --- a/pdfviewer.py +++ b/pdfviewer.py @@ -366,7 +366,6 @@ class PDFTabPage(Gtk.HBox): def __download_progress_cb(self, download, data): progress = download.get_progress() - self._browser.props.load_status = WebKit.LoadStatus.PROVISIONAL self._browser.props.progress = progress def __download_status_cb(self, download, data): |