Commit 793263b6 authored by Morten Welinder's avatar Morten Welinder

GUI: Use shift-wheel for horizontal scroll.

parent 42417d52
2016-02-10 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_scroll_wheel): Use shift modifier with scroll
wheel for horizontal motion instead of alt. Window managers tend
to eat the latter.
2016-02-08 Morten Welinder <terra@gnome.org>
* src/graph.c (gnm_go_data_vector_eval)
......
......@@ -2314,7 +2314,7 @@ cb_scroll_wheel (GtkWidget *w, GdkEventScroll *event,
event->direction == GDK_SCROLL_SMOOTH)
return FALSE;
if ((event->state & GDK_MOD1_MASK))
if ((event->state & GDK_SHIFT_MASK))
go_horiz = !go_horiz;
if ((event->state & GDK_CONTROL_MASK)) { /* zoom */
......@@ -2334,8 +2334,6 @@ cb_scroll_wheel (GtkWidget *w, GdkEventScroll *event,
if (0 <= zoom && zoom <= 390)
cmd_zoom (GNM_WBC (wbcg), g_slist_append (NULL, sheet),
(double) (zoom + 10) / 100);
} else if ((event->state & GDK_SHIFT_MASK)) {
/* XL sort of shows/hides groups */
} else if (go_horiz) {
int col = (pane->last_full.col - pane->first.col) / 4;
if (col < 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment