From b72aaf744999d77de21a27e14b4e53b604a0e5a2 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 23 Feb 2010 02:38:47 +0000 Subject: fix forward backward logic --- xxxterm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xxxterm.c b/xxxterm.c index 04668ab..6c92c1c 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -764,11 +764,11 @@ notify_load_status_cb(WebKitWebView* wview, GParamSpec* pspec, struct tab *t) break; } - if (webkit_web_view_can_go_back(wview)) - gtk_widget_set_sensitive(GTK_WIDGET(t->backward), TRUE); + gtk_widget_set_sensitive(GTK_WIDGET(t->backward), + webkit_web_view_can_go_back(wview)); - if (webkit_web_view_can_go_forward(wview)) - gtk_widget_set_sensitive(GTK_WIDGET(t->forward), TRUE); + gtk_widget_set_sensitive(GTK_WIDGET(t->forward), + webkit_web_view_can_go_forward(wview)); } int -- cgit 1.4.1-2-gfad0