Revert "scrolledwindow: fix scrolling with shared adjustment"

This reverts commit f0478c3dfd.
Didn't mean to push this.
This commit is contained in:
Matthias Clasen 2014-06-28 22:29:57 -04:00
parent 31e4ec4632
commit 4067d0623f

View File

@ -2349,7 +2349,8 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget,
if (gdk_event_get_scroll_deltas ((GdkEvent *) event, &delta_x, &delta_y))
{
if (delta_x != 0.0)
if (delta_x != 0.0 &&
gtk_widget_get_visible (priv->hscrollbar))
{
GtkAdjustment *adj;
gdouble new_value;
@ -2370,7 +2371,8 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget,
handled = TRUE;
}
if (delta_y != 0.0)
if (delta_y != 0.0 &&
gtk_widget_get_visible (priv->vscrollbar))
{
GtkAdjustment *adj;
gdouble new_value;
@ -2400,7 +2402,7 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget,
else
range = priv->hscrollbar;
if (range)
if (range && gtk_widget_get_visible (range))
{
GtkAdjustment *adj = gtk_range_get_adjustment (GTK_RANGE (range));
gdouble new_value;