[gtk+/wip/unfocused-fixes: 10/27] checkmenuitem: Clean up state flags handling on drawing
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/unfocused-fixes: 10/27] checkmenuitem: Clean up state flags handling on drawing
- Date: Mon, 19 Dec 2011 16:25:17 +0000 (UTC)
commit a2367eee61b9c89c6c62b601dc21157819caa8a2
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Dec 15 19:36:27 2011 +0000
checkmenuitem: Clean up state flags handling on drawing
gtk/gtkcheckmenuitem.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index a3e97fe..314a5b1 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]