summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-17 03:22:30 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-17 03:22:30 (EDT)
commit00711f753dadb2a6f00d4373b4699d1a86b4f5ce (patch)
treecf9b2795b15c00aa74d8d55972ee2fb9b4b4dc25 /src
parent0ad2ce4e81dce4acb200da2aa761b8dcaa78118d (diff)
downloadmarquee-00711f753dadb2a6f00d4373b4699d1a86b4f5ce.zip
marquee-00711f753dadb2a6f00d4373b4699d1a86b4f5ce.tar.gz
marquee-00711f753dadb2a6f00d4373b4699d1a86b4f5ce.tar.bz2
src/tab-chrome.c: Enable/disable back/forward buttons
Diffstat (limited to 'src')
-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 d187e70..14300b6 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -124,6 +124,11 @@ load_changed_cb(WebKitWebView *web_view, WebKitLoadEvent load_event,
GTK_ENTRY(chrome->uri_entry), 0.0);
break;
}
+
+ 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