about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
authorTodd T. Fries <todd@fries.net>2012-06-13 12:09:17 -0500
committerTodd T. Fries <todd@fries.net>2012-06-13 14:43:23 -0500
commit515f2ee756a374469626870a23ffac2f07932994 (patch)
tree509b9e723826ddd55ccf37954f8561e7da1d1682 /xombrero.c
parent5054b4c5b3465b6cc00cf8be9674d88d771cf869 (diff)
downloadxombrero-515f2ee756a374469626870a23ffac2f07932994.tar.gz
set progress unconditionally on both statusbar and url_entry given we don't check on hide/show if we need to set the proper progress indicator
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/xombrero.c b/xombrero.c
index 324dd82..3d3d19e 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -4330,13 +4330,10 @@ webview_load_finished_cb(WebKitWebView *wv, WebKitWebFrame *wf, struct tab *t)
 void
 webview_progress_changed_cb(WebKitWebView *wv, int progress, struct tab *t)
 {
-	if (show_url == 0) {
-		gtk_entry_set_progress_fraction(GTK_ENTRY(t->sbe.statusbar),
-		    progress == 100 ? 0 : (double)progress / 100);
-	} else {
-		gtk_entry_set_progress_fraction(GTK_ENTRY(t->uri_entry),
-		    progress == 100 ? 0 : (double)progress / 100);
-	}
+	gtk_entry_set_progress_fraction(GTK_ENTRY(t->sbe.statusbar),
+	    progress == 100 ? 0 : (double)progress / 100);
+	gtk_entry_set_progress_fraction(GTK_ENTRY(t->uri_entry),
+	    progress == 100 ? 0 : (double)progress / 100);
 
 	update_statusbar_position(NULL, NULL);
 }