diff options
author | Anders Carlsson <andersca@src.gnome.org> | 2000-06-13 07:33:27 +0800 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2000-06-13 07:33:27 +0800 |
commit | 6c12613258f40118afae97e3868e0c007912bf28 (patch) | |
tree | 0d9f74c77b05c6c8801223318485872747f7d8e2 /widgets/misc | |
parent | ee7f4d32f9f2c9b9f1a5a291bc16b9bd5aac5120 (diff) | |
download | gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.tar.gz gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.tar.zst gsoc2013-evolution-6c12613258f40118afae97e3868e0c007912bf28.zip |
Control does horizontal scrolling...
svn path=/trunk/; revision=3539
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/misc/e-scroll-frame.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 51a3b2d029..aadc5d6e2d 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,8 @@ +2000-06-13 Anders Carlsson <andersca@gnu.org> + + * e-scroll-frame.c (e_scroll_frame_button_press): Control does + horizontal scrolling, a la gimp. + 2000-06-11 Anders Carlsson <andersca@gnu.org> * e-scroll-frame.c (e_scroll_frame_button_press): Add support 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: |