diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2002-11-10 20:52:34 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2002-11-10 20:52:34 +0000 |
commit | ee6029e7f4c0ff674686dffc44cfe16a4bdece10 (patch) | |
tree | cd829c8e2ebb6e2adbe1a76978d31ec1a5586d67 /gtk/gtkcheckbutton.c | |
parent | ac116999c28ccfdf93210e8fa261bb7637411c25 (diff) | |
download | gtk+-ee6029e7f4c0ff674686dffc44cfe16a4bdece10.tar.gz |
gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator)
Sun Nov 10 21:29:03 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator)
Make sure check and option marks are drawn insensitive when the
widgets are insensitive.
(#92548, patch from Tim Evans)
Sun Nov 10 21:25:04 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkwidget.h (struct _GtkWidgetClass): Remove _gtk_reserved8
to restore binary compatibility.
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r-- | gtk/gtkcheckbutton.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index d0667c4bc3..5d3f2af8c0 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -415,6 +415,8 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button, state_type = GTK_STATE_ACTIVE; else if (button->in_button) state_type = GTK_STATE_PRELIGHT; + else if (!GTK_WIDGET_SENSITIVE (widget)) + state_type = GTK_STATE_INSENSITIVE; else state_type = GTK_STATE_NORMAL; @@ -440,7 +442,7 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button, new_area.width, new_area.height); } } - + gtk_paint_check (widget->style, widget->window, state_type, shadow_type, area, widget, "checkbutton", |