mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
checkmenuitem: Clean up state flags handling on drawing
This commit is contained in:
parent
c9bbfb5e9b
commit
8baf65b595
@ -560,7 +560,7 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
|
|||||||
|
|
||||||
if (priv->active ||
|
if (priv->active ||
|
||||||
priv->always_show_toggle ||
|
priv->always_show_toggle ||
|
||||||
(gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_PRELIGHT))
|
(state & GTK_STATE_FLAG_PRELIGHT))
|
||||||
{
|
{
|
||||||
gtk_style_context_save (context);
|
gtk_style_context_save (context);
|
||||||
|
|
||||||
@ -569,9 +569,6 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
|
|||||||
else if (priv->active)
|
else if (priv->active)
|
||||||
state |= GTK_STATE_FLAG_ACTIVE;
|
state |= GTK_STATE_FLAG_ACTIVE;
|
||||||
|
|
||||||
if (!gtk_widget_is_sensitive (widget))
|
|
||||||
state |= GTK_STATE_FLAG_INSENSITIVE;
|
|
||||||
|
|
||||||
gtk_style_context_set_state (context, state);
|
gtk_style_context_set_state (context, state);
|
||||||
|
|
||||||
if (priv->draw_as_radio)
|
if (priv->draw_as_radio)
|
||||||
|
Loading…
Reference in New Issue
Block a user