From d3661589f461a5b292ec230aba280dbc55978d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sat, 11 Sep 2010 03:27:37 +0200 Subject: [PATCH] gtk/gtkwidget.c: Use accessor functions to access GtkWindowGroup --- gtk/gtkwidget.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index d749118059..a203236068 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -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 && - !gtk_widget_is_ancestor (widget, grab_widget)) - return TRUE; - } + 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; }