aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-scroll-frame.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@src.gnome.org>2000-06-13 07:33:27 +0800
committerAnders Carlsson <andersca@src.gnome.org>2000-06-13 07:33:27 +0800
commit6c12613258f40118afae97e3868e0c007912bf28 (patch)
tree0d9f74c77b05c6c8801223318485872747f7d8e2 /widgets/misc/e-scroll-frame.c
parentee7f4d32f9f2c9b9f1a5a291bc16b9bd5aac5120 (diff)
downloadgsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.tar
gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.tar.gz
gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.tar.bz2
gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.tar.lz
gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.tar.xz
gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.tar.zst
gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.zip
Control does horizontal scrolling...
svn path=/trunk/; revision=3539
Diffstat (limited to 'widgets/misc/e-scroll-frame.c')
-rw-r--r--widgets/misc/e-scroll-frame.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/misc/e-scroll-frame.c b/widgets/misc/e-scroll-frame.c
index f4317d51d7..254977457a 100644
--- a/widgets/misc/e-scroll-frame.c
+++ b/widgets/misc/e-scroll-frame.c
@@ -791,9 +791,11 @@ e_scroll_frame_button_press (GtkWidget *widget, GdkEventButton *event)
if (event->button == 4 || event->button == 5) {
GtkAdjustment *adj;
gfloat new_value;
-
+
gtk_object_get (GTK_OBJECT (widget),
- "vadjustment", &adj,
+ (event->state & GDK_CONTROL_MASK) ?
+ "hadjustment" : "vadjustment",
+ &adj,
NULL);
new_value = adj->value + ((event->button == 4) ?
-adj->page_increment / 2: