Commit d3661589 authored by Javier Jardón's avatar Javier Jardón
Browse files

gtk/gtkwidget.c: Use accessor functions to access GtkWindowGroup

parent ab248d7c
...@@ -5776,14 +5776,10 @@ gtk_widget_device_is_shadowed (GtkWidget *widget, ...@@ -5776,14 +5776,10 @@ gtk_widget_device_is_shadowed (GtkWidget *widget,
!gtk_widget_is_ancestor (widget, grab_widget)) !gtk_widget_is_ancestor (widget, grab_widget))
return TRUE; return TRUE;
if (group->grabs) grab_widget = gtk_window_group_get_current_grab (group);
{ if (grab_widget && widget != grab_widget &&
grab_widget = group->grabs->data; !gtk_widget_is_ancestor (widget, grab_widget))
return TRUE;
if (widget != grab_widget &&
!gtk_widget_is_ancestor (widget, grab_widget))
return TRUE;
}
return FALSE; return FALSE;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment