diff options
author | Andrew Shadura <andrew@shadura.me> | 2013-10-16 16:12:24 +0200 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2013-10-16 16:12:24 +0200 |
commit | 2574b021d3b76ea76ac62ef534810b66c0a3b08f (patch) | |
tree | 75d7a193722c98a5026a657c845f0568f301f915 | |
parent | fd0f74fe511df46b2d3ba39f3bf5f6e9841e1623 (diff) | |
download | xombrero-2574b021d3b76ea76ac62ef534810b66c0a3b08f.tar.gz |
Don't perform explicit float equality comparisons.
-rw-r--r-- | xombrero.c | 4 |
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); } |