summaryrefslogtreecommitdiff
path: root/gtk/gtkradiomenuitem.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/gtkradiomenuitem.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/gtkradiomenuitem.c')
-rw-r--r--gtk/gtkradiomenuitem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c
index 410984f19b..87ac5052e4 100644
--- a/gtk/gtkradiomenuitem.c
+++ b/gtk/gtkradiomenuitem.c
@@ -338,6 +338,9 @@ gtk_radio_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
if (check_menu_item->inconsistent)
shadow_type = GTK_SHADOW_ETCHED_IN;
+ if (!GTK_WIDGET_IS_SENSITIVE (widget))
+ state_type = GTK_STATE_INSENSITIVE;
+
gtk_paint_option (widget->style, widget->window,
state_type, shadow_type,
area, widget, "option",