mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
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)
This commit is contained in:
parent
92295447cb
commit
7ecccfdcb4
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
* gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
|
||||
|
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
* gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
|
||||
|
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
* gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
|
||||
|
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
* gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user