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)
This commit is contained in:
Carlos Garnacho
2006-12-29 19:12:51 +00:00
committed by Carlos Garnacho
parent f5249206c5
commit 4b9fdf8fcf
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
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)
2006-12-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (update_node): Only use the results

View File

@@ -2274,7 +2274,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)