diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2006-12-29 19:11:32 +0000 |
---|---|---|
committer | Carlos Garnacho <carlosg@src.gnome.org> | 2006-12-29 19:11:32 +0000 |
commit | 35ac74a03702f1e2e372f2a00639d0301be6cc41 (patch) | |
tree | 44b529072918a8a6c026cb174b284e01e41a315a /gtk/gtknotebook.c | |
parent | ba7b79d18750df744ea90bf3a2ca339c8d4890a5 (diff) | |
download | gtk+-35ac74a03702f1e2e372f2a00639d0301be6cc41.tar.gz |
return if the widget that originally received the event is a notebook
2006-12-29 Carlos Garnacho <carlosg@gnome.org>
* gtk/gtknotebook.c (gtk_notebook_scroll): return if the widget that
originally received the event is a notebook page. (#315440, reported
by Mateusz Stefek)
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 23abb59217..9f8d14ed00 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -2301,7 +2301,7 @@ gtk_notebook_scroll (GtkWidget *widget, originator = gtk_get_event_widget ((GdkEvent *)event); /* ignore scroll events from the content of the page */ - if (!originator || gtk_widget_is_ancestor (originator, child)) + if (!originator || gtk_widget_is_ancestor (originator, child) || originator == child) return FALSE; switch (event->direction) |