ModelButton: Protect against nonsensical gbooleans
the same way we do normally.
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user