mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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:
parent
ba7b79d187
commit
35ac74a037
@ -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-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkcolor.c (gdk_color_hash): Fix a typo. (#390613,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user