about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2010-02-23 02:38:47 +0000
committerMarco Peereboom <marco@conformal.com>2010-02-23 02:38:47 +0000
commitb72aaf744999d77de21a27e14b4e53b604a0e5a2 (patch)
tree3cab1a6941ae4e928f71b55eef3651f965f3f8ef
parent5f50217e6bc7ee00f8817127dd2de7cf93ac8868 (diff)
downloadxombrero-b72aaf744999d77de21a27e14b4e53b604a0e5a2.tar.gz
fix forward backward logic
-rw-r--r--xxxterm.c8
1 files 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