checkmenuitem: Clean up state flags handling on drawing

This commit is contained in:
Rui Matos 2011-12-15 19:36:27 +00:00
parent c9bbfb5e9b
commit 8baf65b595

View File

@ -560,7 +560,7 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
if (priv->active ||
priv->always_show_toggle ||
(gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_PRELIGHT))
(state & GTK_STATE_FLAG_PRELIGHT))
{
gtk_style_context_save (context);
@ -569,9 +569,6 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
else if (priv->active)
state |= GTK_STATE_FLAG_ACTIVE;
if (!gtk_widget_is_sensitive (widget))
state |= GTK_STATE_FLAG_INSENSITIVE;
gtk_style_context_set_state (context, state);
if (priv->draw_as_radio)