summaryrefslogtreecommitdiffstats
path: root/src/tab-chrome.h
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-17 05:07:42 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-17 05:07:42 (EDT)
commitaef05e105fb157d8856863c7858d1ce596bd6f2e (patch)
treefb8b5f7d2b67ed904979078987a64527aa04c9e9 /src/tab-chrome.h
parente8507a09988fb4307051d34fb5facf8621df3e7e (diff)
downloadmarquee-aef05e105fb157d8856863c7858d1ce596bd6f2e.zip
marquee-aef05e105fb157d8856863c7858d1ce596bd6f2e.tar.gz
marquee-aef05e105fb157d8856863c7858d1ce596bd6f2e.tar.bz2
src/tab-chrome.[ch]: Hack around progress bar issue
If loading fails, the WebKitWebView's "estimated-load-progress" is set to 1.0 after signals like "load-changed" and "load-failed" are emitted. So the only way to avoid leaving behind a full progress bar after, for example, canceling a page load is to save a flag on a failed load and only update the progress bar if the flag is unset.
Diffstat (limited to 'src/tab-chrome.h')
-rw-r--r--src/tab-chrome.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tab-chrome.h b/src/tab-chrome.h
index 90182ef..aef59f9 100644
--- a/src/tab-chrome.h
+++ b/src/tab-chrome.h
@@ -37,6 +37,7 @@ typedef struct {
GtkToolItem *stop_reload_button;
GtkWidget *uri_entry;
WebKitWebView *web_view;
+ gboolean load_failed;
} MqTabChrome;
MqTabChrome *