mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-10 20:50:12 +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
a793f8f243
commit
42d7f81649
@ -445,8 +445,7 @@ update_fraction_classes (GtkProgressBar *pbar)
|
|||||||
{
|
{
|
||||||
if (priv->fraction <= 0.0)
|
if (priv->fraction <= 0.0)
|
||||||
empty = TRUE;
|
empty = TRUE;
|
||||||
|
else if (priv->fraction >= 1.0)
|
||||||
if (priv->fraction >= 1.0)
|
|
||||||
full = TRUE;
|
full = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user