summaryrefslogtreecommitdiff
path: root/gtk/gtkradiobutton.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-02 21:18:07 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-02 21:18:07 +0000
commitaba1c9a76e4d3db7d1a02b4b09a7413433790fd5 (patch)
tree2223604994a5a6a831b879f8dc146e45e8c244f0 /gtk/gtkradiobutton.c
parent8d3278f076b813d43c7918e20eeeb3ddaa5f3dd2 (diff)
downloadgtk+-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.c6
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))
{