diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-03-02 21:18:07 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-03-02 21:18:07 +0000 |
commit | aba1c9a76e4d3db7d1a02b4b09a7413433790fd5 (patch) | |
tree | 2223604994a5a6a831b879f8dc146e45e8c244f0 /gtk/gtkradiobutton.c | |
parent | 8d3278f076b813d43c7918e20eeeb3ddaa5f3dd2 (diff) | |
download | gtk+-aba1c9a76e4d3db7d1a02b4b09a7413433790fd5.tar.gz |
Don't do special focus handling if draw_indicator is not set. (#64723,
Sat Mar 2 16:12:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
do special focus handling if draw_indicator is not set.
(#64723, Damon Chaplin.)
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r-- | gtk/gtkradiobutton.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 50498e929b..deb0ba237b 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -387,6 +387,12 @@ gtk_radio_button_focus (GtkWidget *widget, { GtkRadioButton *radio_button = GTK_RADIO_BUTTON (widget); GSList *tmp_slist; + + /* Radio buttons with draw_indicator unset focus "normally", since + * they look like buttons to the user. + */ + if (!GTK_TOGGLE_BUTTON (widget)->draw_indicator) + return GTK_WIDGET_CLASS (parent_class)->focus (widget, direction); if (gtk_widget_is_focus (widget)) { |