[gtk+/wip/baedert/children: 33/36] gtkmain: Correctly notify all widgets of a grab
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/children: 33/36] gtkmain: Correctly notify all widgets of a grab
- Date: Wed, 7 Dec 2016 17:28:01 +0000 (UTC)
commit 851464f59b4c841b2549195602f3858c0750257d
Author: Timm Bäder <mail baedert org>
Date: Sun Dec 4 12:48:50 2016 +0100
gtkmain: Correctly notify all widgets of a grab
gtk/gtkmain.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 25e2047..69b2298 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -2074,8 +2074,17 @@ gtk_grab_notify_foreach (GtkWidget *child,
g_object_ref (child);
- if ((was_shadowed || is_shadowed) && GTK_IS_CONTAINER (child))
- gtk_container_forall (GTK_CONTAINER (child), gtk_grab_notify_foreach, info);
+ if (was_shadowed || is_shadowed)
+ {
+ GtkWidget *p;
+
+ for (p = _gtk_widget_get_first_child (child);
+ p != NULL;
+ p = _gtk_widget_get_next_sibling (p))
+ {
+ gtk_grab_notify_foreach (p, info);
+ }
+ }
if (info->device &&
_gtk_widget_get_device_window (child, info->device))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]