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,
!gtk_widget_is_ancestor (widget, grab_widget))
return TRUE;
if (group->grabs)
grab_widget = group->grabs->data;
if (widget != grab_widget &&
grab_widget = gtk_window_group_get_current_grab (group);
if (grab_widget && widget != grab_widget &&
!gtk_widget_is_ancestor (widget, grab_widget))
return TRUE;
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