diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-11-19 22:39:03 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-11-19 22:39:03 +0000 |
commit | f4f196c13303c1b71e75a48b89c4b0cd9e9a0cee (patch) | |
tree | ce84a7a58a24d39e9c201c70cf3f043eb0cca3ad /gtk/gtkradiobutton.c | |
parent | 0e8a7fb48e88c408040a6d422b7f20ecd35271fc (diff) | |
download | gtk+-f4f196c13303c1b71e75a48b89c4b0cd9e9a0cee.tar.gz |
Use the widget's state when drawing the indicator, as in GtkCheckButton.
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
Use the widget's state when drawing the indicator, as
in GtkCheckButton. This gives us color changes for
un-prelighted checkbuttons. (#63308, Matt Wilson)
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r-- | gtk/gtkradiobutton.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 9e6e169661..b1ce1e2eef 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -621,6 +621,7 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button, x = widget->allocation.x + indicator_spacing + GTK_CONTAINER (widget)->border_width; y = widget->allocation.y + (widget->allocation.height - indicator_size) / 2; + state_type = GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE ? GTK_STATE_NORMAL : GTK_WIDGET_STATE (widget); if (GTK_TOGGLE_BUTTON (widget)->active) shadow_type = GTK_SHADOW_IN; else |