From 2574b021d3b76ea76ac62ef534810b66c0a3b08f Mon Sep 17 00:00:00 2001 From: Andrew Shadura Date: Wed, 16 Oct 2013 16:12:24 +0200 Subject: Don't perform explicit float equality comparisons. --- xombrero.c | 4 ++-- 1 file 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); } -- cgit 1.4.1-2-gfad0