summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-30 14:04:07 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-30 14:04:07 (EDT)
commitfac6c0ce9820aaf65b0baf1d275bf265a96d842f (patch)
tree6a2cda7e69a4cdc3d7db114bcd14a196d69b0b71
parent80c0a969d0065b722f8cf1f76ae004e385c13641 (diff)
downloadmarquee-fac6c0ce9820aaf65b0baf1d275bf265a96d842f.zip
marquee-fac6c0ce9820aaf65b0baf1d275bf265a96d842f.tar.gz
marquee-fac6c0ce9820aaf65b0baf1d275bf265a96d842f.tar.bz2
MqTabChrome: Set back/forward button sensitivity on URI change
-rw-r--r--src/tab-chrome.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index 6a4c77c..548cd78 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -671,6 +671,11 @@ uri_cb(WebKitWebView *web_view, GParamSpec __attribute__((unused)) *paramspec,
gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), uri);
g_free(uri);
gtk_entry_set_attributes(GTK_ENTRY(chrome->uri_entry), NULL);
+
+ gtk_widget_set_sensitive(GTK_WIDGET(chrome->back_button),
+ webkit_web_view_can_go_back(web_view));
+ gtk_widget_set_sensitive(GTK_WIDGET(chrome->forward_button),
+ webkit_web_view_can_go_forward(web_view));
}
static void