forked from AuroraMiddleware/gtk
GtkScrolledWindow: Don't handle key event when can't scroll
Don't return that a key event was handled when the corresponding scrollbar can not scroll. https://bugzilla.gnome.org/show_bug.cgi?id=753256
This commit is contained in:
parent
01371085ee
commit
359534ee59
@ -2463,9 +2463,19 @@ gtk_scrolled_window_scroll_child (GtkScrolledWindow *scrolled_window,
|
||||
}
|
||||
|
||||
if (horizontal)
|
||||
adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->hscrollbar));
|
||||
{
|
||||
if (may_hscroll (scrolled_window))
|
||||
adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->hscrollbar));
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->vscrollbar));
|
||||
{
|
||||
if (may_vscroll (scrolled_window))
|
||||
adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->vscrollbar));
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (adjustment)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user