Commit 7ecccfdc authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Ignore scroll events from the content of the page. (#148409, Gabriel de


Sun Jul 25 19:51:17 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll
	events from the content of the page.  (#148409, Gabriel
	de Perthuis)
parent 92295447
Sun Jul 25 19:51:17 2004 Matthias Clasen <maclas@gmx.de>
* 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 <sandmann@daimi.au.dk> Sat Jul 24 21:38:12 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (internal_insert_element): Warn if you try to * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
......
Sun Jul 25 19:51:17 2004 Matthias Clasen <maclas@gmx.de>
* 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 <sandmann@daimi.au.dk> Sat Jul 24 21:38:12 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (internal_insert_element): Warn if you try to * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
......
Sun Jul 25 19:51:17 2004 Matthias Clasen <maclas@gmx.de>
* 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 <sandmann@daimi.au.dk> Sat Jul 24 21:38:12 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (internal_insert_element): Warn if you try to * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
......
Sun Jul 25 19:51:17 2004 Matthias Clasen <maclas@gmx.de>
* 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 <sandmann@daimi.au.dk> Sat Jul 24 21:38:12 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (internal_insert_element): Warn if you try to * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
......
...@@ -1767,6 +1767,19 @@ gtk_notebook_scroll (GtkWidget *widget, ...@@ -1767,6 +1767,19 @@ gtk_notebook_scroll (GtkWidget *widget,
{ {
GtkNotebook *notebook = GTK_NOTEBOOK (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) switch (event->direction)
{ {
case GDK_SCROLL_RIGHT: case GDK_SCROLL_RIGHT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment