Changeset 556
- Timestamp:
- 08/23/08 21:49:19 (3 months ago)
- Files:
-
- gtkimageview/src/gtkimageview.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gtkimageview/src/gtkimageview.c
r540 r556 897 897 GtkImageView *view = GTK_IMAGE_VIEW (widget); 898 898 899 // Horizontal scroll events will be handled in the future.900 g_assert (ev->direction == GDK_SCROLL_UP ||901 ev->direction == GDK_SCROLL_DOWN);902 903 899 if (!(ev->state & GDK_CONTROL_MASK)) 904 900 { … … 908 904 return TRUE; 909 905 } 910 906 907 // Horizontal scroll left is equivalent to scroll up and right is 908 // like scroll down. No idea if that is correct -- I have no input 909 // device that can do horizontal scrolls. 911 910 gdouble zoom = gtk_zooms_get_zoom_out (view->zoom); 912 if (ev->direction == GDK_SCROLL_UP )911 if (ev->direction == GDK_SCROLL_UP || ev->direction == GDK_SCROLL_LEFT) 913 912 zoom = gtk_zooms_get_zoom_in (view->zoom); 914 913 gtk_image_view_set_zoom_with_center (view, zoom, ev->x, ev->y, FALSE); … … 1102 1101 * GtkImageView::mouse-wheel-scroll: 1103 1102 * @view: The #GtkImageView that emitted the signal. 1104 * @direction: The direction of the scroll; either %GDK_SCROLL_UP1105 * or %GDK_SCROLL_DOWN.1103 * @direction: The direction of the scroll; %GDK_SCROLL_UP, 1104 * %GDK_SCROLL_DOWN, %GDK_SCROLL_LEFT or %GDK_SCROLL_RIGHT. 1106 1105 * 1107 1106 * The ::mouse-wheel-scroll signal is emitted when the mouse wheel
