summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckmenuitem.c
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-12-15 19:36:27 +0000
committerRui Matos <tiagomatos@gmail.com>2011-12-19 19:21:15 +0000
commit8baf65b5956738bdfbc3df4bbbdb83c3d92f1c52 (patch)
tree2cc6e4ce3058d296bc286413fbea8d0843d24d07 /gtk/gtkcheckmenuitem.c
parentc9bbfb5e9b21d46000d32f9a9c9d9e175c1bad0c (diff)
downloadgtk+-8baf65b5956738bdfbc3df4bbbdb83c3d92f1c52.tar.gz
checkmenuitem: Clean up state flags handling on drawing
Diffstat (limited to 'gtk/gtkcheckmenuitem.c')
-rw-r--r--gtk/gtkcheckmenuitem.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index a3e97febd6..314a5b18a9 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -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)