mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
GtkProgressBar: trivial conditional optimisation
I'd hope the compiler would realise this for us, but let's be explicit.
This commit is contained in:
parent
3dac21f20b
commit
8efc91c4e0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user