Commit 359534ee authored by Marek Kašík's avatar Marek Kašík

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
parent 01371085
......@@ -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)
{
......
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