about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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