ModelButton: Protect against nonsensical gbooleans

the same way we do normally.
This commit is contained in:
Daniel Boles
2018-04-08 12:43:07 +01:00
parent e193cd1cf1
commit fa520c5769

View File

@ -400,6 +400,7 @@ static void
gtk_model_button_set_active (GtkModelButton *button,
gboolean active)
{
active = !!active;
if (button->active == active)
return;
@ -427,6 +428,7 @@ static void
gtk_model_button_set_inverted (GtkModelButton *button,
gboolean inverted)
{
inverted = !!inverted;
if (button->inverted == inverted)
return;
@ -441,6 +443,7 @@ static void
gtk_model_button_set_centered (GtkModelButton *button,
gboolean centered)
{
centered = !!centered;
if (button->centered == centered)
return;
@ -457,6 +460,7 @@ gtk_model_button_set_iconic (GtkModelButton *button,
GtkCssNode *widget_node;
GtkCssNode *indicator_node;
iconic = !!iconic;
if (button->iconic == iconic)
return;