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/gtkcheckbutton.c | |
parent | 8ac2b1dda638008b9f71de224e28f2b01cfdd91c (diff) | |
download | gtk+-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/gtkcheckbutton.c')
-rw-r--r-- | gtk/gtkcheckbutton.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index 1e69eb56d9..429cd25e63 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -95,6 +95,7 @@ static void gtk_check_button_init (GtkCheckButton *check_button) { GTK_WIDGET_SET_FLAGS (check_button, GTK_NO_WINDOW); + GTK_WIDGET_UNSET_FLAGS (check_button, GTK_RECEIVES_DEFAULT); GTK_TOGGLE_BUTTON (check_button)->draw_indicator = TRUE; } |