From 42d7f81649f39a32a313de34e46e6acbf282212d Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Sat, 3 Dec 2016 02:35:27 +0000 Subject: [PATCH] GtkProgressBar: trivial conditional optimisation I'd hope the compiler would realise this for us, but let's be explicit. --- gtk/gtkprogressbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index 7fd9a0373f..0ea66927d0 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -445,8 +445,7 @@ update_fraction_classes (GtkProgressBar *pbar) { if (priv->fraction <= 0.0) empty = TRUE; - - if (priv->fraction >= 1.0) + else if (priv->fraction >= 1.0) full = TRUE; }