summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckmenuitem.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-06-04 22:44:10 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-06-04 22:44:10 +0000
commitc1ccc9b9a449614b66fa89e43f996801d316432e (patch)
treecaa957954c84d6b9a5b76c18f808c81c65e4df6c /gtk/gtkcheckmenuitem.c
parent5afcde9a25a01c587af1910df7559f32a694a151 (diff)
downloadgtk+-c1ccc9b9a449614b66fa89e43f996801d316432e.tar.gz
gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): Use
Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE (#92548, Tim Evans) * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator) gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If Use state_type = STATE_INSENSITIVE for insensitive menu items.
Diffstat (limited to 'gtk/gtkcheckmenuitem.c')
-rw-r--r--gtk/gtkcheckmenuitem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index daf6a37259..269b1efe88 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -390,6 +390,9 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
if (state_type == GTK_STATE_ACTIVE)
state_type = GTK_STATE_NORMAL;
}
+
+ if (!GTK_WIDGET_IS_SENSITIVE (widget))
+ state_type = GTK_STATE_INSENSITIVE;
gtk_paint_check (widget->style, widget->window,
state_type, shadow_type,