GtkProgressBar: trivial conditional optimisation

I'd hope the compiler would realise this for us, but let's be explicit.
This commit is contained in:
Daniel Boles 2016-12-03 02:35:27 +00:00
parent 3dac21f20b
commit 8efc91c4e0

View File

@ -338,8 +338,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;
}