diff options
author | George Lebl <jirka@5z.com> | 1999-01-25 19:05:58 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 1999-01-25 19:05:58 +0000 |
commit | 4b8095d525c3d494a0013011445975eed006e628 (patch) | |
tree | 4a141111cecba37f36051906a0be1b1e18c0500d /gtk/gtkradiobutton.c | |
parent | 8ac2b1dda638008b9f71de224e28f2b01cfdd91c (diff) | |
download | gdk-pixbuf-4b8095d525c3d494a0013011445975eed006e628.tar.gz |
set RECEIVES_DEFAULT on init, and a button press on the widget doesn't
Mon Jan 25 11:05:10 1999 George Lebl <jirka@5z.com>
* gtk/gtkbutton.c: set RECEIVES_DEFAULT on init, and a
button press on the widget doesn't grab default anymore
* gtk/gtkcheckbutton.c,gtk/gtkoptionmenu.c,gtk/gtkradiobutton.c:
unset RECEIVES_DEFAULT on init
* gtk/gtkwidget.[ch]: add a RECEIVES_DEFAULT flag to widget
flags
* gtk/gtkwindow.c,gtk/gtkplug.c: on pressing <enter>, activate
the focused widget if it is a RECEIVES_DEFAULT widget,
no matter what the current default_widget is
* gtk/gtkwindow.c: on focus change, migrate the HAS_DEFAULT
flag to CAN_DEFAULT widgets if they RECEIVE_DEFAULT as well
or migrate it back to the default_widget if the focus widget
doesn't "RECEIVE_DEFAULT"
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 b517214d6..2f2498795 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -99,6 +99,7 @@ static void gtk_radio_button_init (GtkRadioButton *radio_button) { GTK_WIDGET_SET_FLAGS (radio_button, GTK_NO_WINDOW); + GTK_WIDGET_UNSET_FLAGS (radio_button, GTK_RECEIVES_DEFAULT); GTK_TOGGLE_BUTTON (radio_button)->active = TRUE; |