diff --git a/ChangeLog b/ChangeLog index a1c1a72f90..0c3e2677e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Jul 25 19:51:17 2004 Matthias Clasen + + * gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll + events from the content of the page. (#148409, Gabriel + de Perthuis) + Sat Jul 24 21:38:12 2004 Soeren Sandmann * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a1c1a72f90..0c3e2677e8 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sun Jul 25 19:51:17 2004 Matthias Clasen + + * gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll + events from the content of the page. (#148409, Gabriel + de Perthuis) + Sat Jul 24 21:38:12 2004 Soeren Sandmann * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index a1c1a72f90..0c3e2677e8 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sun Jul 25 19:51:17 2004 Matthias Clasen + + * gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll + events from the content of the page. (#148409, Gabriel + de Perthuis) + Sat Jul 24 21:38:12 2004 Soeren Sandmann * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a1c1a72f90..0c3e2677e8 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sun Jul 25 19:51:17 2004 Matthias Clasen + + * gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll + events from the content of the page. (#148409, Gabriel + de Perthuis) + Sat Jul 24 21:38:12 2004 Soeren Sandmann * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 751c0ae0b3..88d6091042 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1767,6 +1767,19 @@ gtk_notebook_scroll (GtkWidget *widget, { GtkNotebook *notebook = GTK_NOTEBOOK (widget); + GtkWidget* child; + GtkWidget* originator; + + if (!notebook->cur_page) + return FALSE; + + child = notebook->cur_page->child; + originator = gtk_get_event_widget ((GdkEvent *)event); + + /* ignore scroll events from the content of the page */ + if (!originator || gtk_widget_is_ancestor (originator, child)) + return FALSE; + switch (event->direction) { case GDK_SCROLL_RIGHT: