about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Shadura <andrew@shadura.me>2013-10-16 16:12:24 +0200
committerAndrew Shadura <andrew@shadura.me>2013-10-16 16:12:24 +0200
commit2574b021d3b76ea76ac62ef534810b66c0a3b08f (patch)
tree75d7a193722c98a5026a657c845f0568f301f915
parentfd0f74fe511df46b2d3ba39f3bf5f6e9841e1623 (diff)
downloadxombrero-2574b021d3b76ea76ac62ef534810b66c0a3b08f.tar.gz
Don't perform explicit float equality comparisons.
-rw-r--r--xombrero.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xombrero.c b/xombrero.c
index 369203e..ba47aac 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -4464,9 +4464,9 @@ webview_progress_changed_cb(WebKitWebView *wv, GParamSpec *pspec, struct tab *t)
 
 	progress = webkit_web_view_get_progress(wv);
 	gtk_entry_set_progress_fraction(GTK_ENTRY(t->sbe.uri),
-	    progress == 1.0 ? 0 : progress);
+	    progress > (1.0 - 0.0001) ? 0 : progress);
 	gtk_entry_set_progress_fraction(GTK_ENTRY(t->uri_entry),
-	    progress == 1.0 ? 0 : progress);
+	    progress > (1.0 - 0.0001) ? 0 : progress);
 
 	update_statusbar_position(NULL, NULL);
 }