mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
Don't focus unmapped radio buttons
With Bug 302240, a check was added to avoid keynav to unrealized radio buttons in the group, but that's not the right check - the check should be on MAPPED instead, since a widget can be realized even if it, or a parent, is hidden. Bug 595599
This commit is contained in:
parent
aa43f80423
commit
5f126bec3a
@ -486,7 +486,7 @@ gtk_radio_button_focus (GtkWidget *widget,
|
||||
{
|
||||
GtkWidget *child = tmp_list->data;
|
||||
|
||||
if (GTK_WIDGET_REALIZED (child) && GTK_WIDGET_IS_SENSITIVE (child))
|
||||
if (GTK_WIDGET_MAPPED (child) && GTK_WIDGET_IS_SENSITIVE (child))
|
||||
{
|
||||
new_focus = child;
|
||||
break;
|
||||
@ -522,7 +522,7 @@ gtk_radio_button_focus (GtkWidget *widget,
|
||||
{
|
||||
GtkWidget *child = tmp_list->data;
|
||||
|
||||
if (GTK_WIDGET_REALIZED (child) && GTK_WIDGET_IS_SENSITIVE (child))
|
||||
if (GTK_WIDGET_MAPPED (child) && GTK_WIDGET_IS_SENSITIVE (child))
|
||||
{
|
||||
new_focus = child;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user