mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Special case scroll events so that they propagate up the widget heirarchy
Wed Mar 3 17:20:15 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.c (gtk_propagate_event): Special case scroll events so that they propagate up the widget heirarchy when received on insensitive widgets. (#101102, reported by Geoff Reedy)
This commit is contained in:
parent
0d898ffc6a
commit
7a9bec2891
@ -1,3 +1,10 @@
|
||||
Wed Mar 3 17:20:15 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_propagate_event): Special case
|
||||
scroll events so that they propagate up the widget
|
||||
heirarchy when received on insensitive widgets.
|
||||
(#101102, reported by Geoff Reedy)
|
||||
|
||||
Wed Mar 3 16:47:10 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
#109594, reported by Olivier Ripoll
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Mar 3 17:20:15 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_propagate_event): Special case
|
||||
scroll events so that they propagate up the widget
|
||||
heirarchy when received on insensitive widgets.
|
||||
(#101102, reported by Geoff Reedy)
|
||||
|
||||
Wed Mar 3 16:47:10 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
#109594, reported by Olivier Ripoll
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Mar 3 17:20:15 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_propagate_event): Special case
|
||||
scroll events so that they propagate up the widget
|
||||
heirarchy when received on insensitive widgets.
|
||||
(#101102, reported by Geoff Reedy)
|
||||
|
||||
Wed Mar 3 16:47:10 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
#109594, reported by Olivier Ripoll
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Mar 3 17:20:15 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_propagate_event): Special case
|
||||
scroll events so that they propagate up the widget
|
||||
heirarchy when received on insensitive widgets.
|
||||
(#101102, reported by Geoff Reedy)
|
||||
|
||||
Wed Mar 3 16:47:10 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
#109594, reported by Olivier Ripoll
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Mar 3 17:20:15 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_propagate_event): Special case
|
||||
scroll events so that they propagate up the widget
|
||||
heirarchy when received on insensitive widgets.
|
||||
(#101102, reported by Geoff Reedy)
|
||||
|
||||
Wed Mar 3 16:47:10 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
#109594, reported by Olivier Ripoll
|
||||
|
@ -2331,8 +2331,17 @@ gtk_propagate_event (GtkWidget *widget,
|
||||
while (TRUE)
|
||||
{
|
||||
GtkWidget *tmp;
|
||||
|
||||
handled_event = !GTK_WIDGET_IS_SENSITIVE (widget) || gtk_widget_event (widget, event);
|
||||
|
||||
/* Scroll events are special cased here because it
|
||||
* feels wrong when scrolling a GtkViewport, say,
|
||||
* to have children of the viewport eat the scroll
|
||||
* event
|
||||
*/
|
||||
if (!GTK_WIDGET_IS_SENSITIVE (widget))
|
||||
handled_event = event->type != GDK_SCROLL;
|
||||
else
|
||||
handled_event = gtk_widget_event (widget, event);
|
||||
|
||||
tmp = widget->parent;
|
||||
g_object_unref (widget);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user