summaryrefslogtreecommitdiff
path: root/gtk/gtkradiobutton.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-11-19 22:39:03 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-11-19 22:39:03 +0000
commitf4f196c13303c1b71e75a48b89c4b0cd9e9a0cee (patch)
treece84a7a58a24d39e9c201c70cf3f043eb0cca3ad /gtk/gtkradiobutton.c
parent0e8a7fb48e88c408040a6d422b7f20ecd35271fc (diff)
downloadgtk+-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.c1
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