[gtk+] scrolledwindow: fix copy/paste typo



commit 6ff19bcedcc5cd2213dec7cdaf472f426abf69f6
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun May 24 12:06:42 2015 -0700

    scrolledwindow: fix copy/paste typo
    
    fc2830394895f236352bea2024dda0e962dd2c53 refactored code into the
    get_scroll_unit() function but introduced a copy/paste typo.

 gtk/gtkscrolledwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 3da8466..81676d6 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -3141,7 +3141,7 @@ gtk_scrolled_window_scroll_event (GtkWidget      *widget,
           gdouble scroll_unit;
 
           adj = gtk_range_get_adjustment (GTK_RANGE (priv->vscrollbar));
-          scroll_unit = get_scroll_unit (scrolled_window, GTK_ORIENTATION_HORIZONTAL);
+          scroll_unit = get_scroll_unit (scrolled_window, GTK_ORIENTATION_VERTICAL);
 
           new_value = priv->unclamped_vadj_value + delta_y * scroll_unit;
           _gtk_scrolled_window_set_adjustment_value (scrolled_window, adj,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]