summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@gimp.org>2012-12-14 15:53:29 +0100
committerMichael Natterer <mitch@gimp.org>2012-12-14 15:53:29 +0100
commit343f1706bd51b830ff66c67b163f397889a96758 (patch)
treeb452ac43049cadd1b956fd88e48b4de153717140 /gtk/gtkmain.c
parent17a3325b2db9a9e184e22224db4030bb952887da (diff)
downloadgtk+-343f1706bd51b830ff66c67b163f397889a96758.tar.gz
gtk: fix scrolling in modal dialogs when event_widget is insensitive
When checking for modal grabs in gtk_main_do_event(), forward GDK_SCROLL events to event_widget, even if it is insensitive.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 6cb174ead1..86cf7c8626 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1555,7 +1555,7 @@ gtk_main_do_event (GdkEvent *event)
* This is the key to implementing modality.
*/
if (!grab_widget ||
- (gtk_widget_is_sensitive (event_widget) &&
+ ((gtk_widget_is_sensitive (event_widget) || event->type == GDK_SCROLL) &&
gtk_widget_is_ancestor (event_widget, grab_widget)))
grab_widget = event_widget;