diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-17 03:54:45 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-17 03:54:45 (EDT) |
commit | 63dc32702cfedf0fd507984b465749ca2ba6c16f (patch) | |
tree | 65b8a4de5840275b9847b83a8cc2177771281d6a /src | |
parent | 709fb30f17877ab4db6adf88e5a6b9fa537ac38e (diff) | |
download | marquee-63dc32702cfedf0fd507984b465749ca2ba6c16f.zip marquee-63dc32702cfedf0fd507984b465749ca2ba6c16f.tar.gz marquee-63dc32702cfedf0fd507984b465749ca2ba6c16f.tar.bz2 |
src/tab-chrome.c: Make stop/reload button stop if loading
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 90309a6..de10dc3 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -44,7 +44,11 @@ static void stop_reload_clicked_cb(GtkToolButton __attribute__((unused)) *toolbutton, MqTabChrome *chrome) { - webkit_web_view_reload(chrome->web_view); + if (webkit_web_view_is_loading(chrome->web_view)) { + webkit_web_view_stop_loading(chrome->web_view); + } else { + webkit_web_view_reload(chrome->web_view); + } } static void |