Commit f7236b26 authored by Matthias Clasen's avatar Matthias Clasen

modelbutton: Fix state confusion

Checked buttons were getting the wrong image.
parent f0fba02d
......@@ -207,12 +207,12 @@ gtk_model_button_update_state (GtkModelButton *button)
{
if (button->active && !button->menu_name)
{
state &= ~GTK_STATE_FLAG_CHECKED;
state |= GTK_STATE_FLAG_CHECKED;
image_type = GTK_CSS_IMAGE_BUILTIN_CHECK_CHECKED;
}
else
{
state |= GTK_STATE_FLAG_CHECKED;
state &= ~GTK_STATE_FLAG_CHECKED;
image_type = GTK_CSS_IMAGE_BUILTIN_CHECK;
}
}
......@@ -220,12 +220,12 @@ gtk_model_button_update_state (GtkModelButton *button)
{
if (button->active && !button->menu_name)
{
state &= ~GTK_STATE_FLAG_CHECKED;
state |= GTK_STATE_FLAG_CHECKED;
image_type = GTK_CSS_IMAGE_BUILTIN_OPTION_CHECKED;
}
else
{
state |= GTK_STATE_FLAG_CHECKED;
state &= ~GTK_STATE_FLAG_CHECKED;
image_type = GTK_CSS_IMAGE_BUILTIN_OPTION;
}
}
......
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