[gtk+] gtk/gtkwidget.c: Use accessor functions to access GtkWindowGroup
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkwidget.c: Use accessor functions to access GtkWindowGroup
- Date: Sat, 11 Sep 2010 02:30:55 +0000 (UTC)
commit d3661589f461a5b292ec230aba280dbc55978d64
Author: Javier Jardón <jjardon gnome org>
Date: Sat Sep 11 03:27:37 2010 +0200
gtk/gtkwidget.c: Use accessor functions to access GtkWindowGroup
gtk/gtkwidget.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index d749118..a203236 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]