Commit fa520c57 authored by Daniel Boles's avatar Daniel Boles

ModelButton: Protect against nonsensical gbooleans

the same way we do normally.
parent e193cd1c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment