From 96fb31bc01284147a34ab70c3e649af1576e8505 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 11 Nov 2012 14:45:33 +0100 Subject: [PATCH] Zoom with left mouse button Linus convinced me that I was wrong to modify his commit 24690ce35f81 "Initial not-so-pretty profile zoom support" and so this changes it back to use the left mouse button for zooming. It turns out that on some touchpads there's a very nice way to hold down the click with one finger and then pan with another finger, but that does not work if you do a two finger click (and use one of those or a third to pan). Signed-off-by: Dirk Hohndel --- gtk-gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk-gui.c b/gtk-gui.c index ea335749c..2434a57fc 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -1381,7 +1381,7 @@ static gboolean expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer gboolean clicked(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { switch (event->button) { - case 3: + case 1: zoom_x = event->x; zoom_y = event->y; break; @@ -1395,7 +1395,7 @@ gboolean clicked(GtkWidget *widget, GdkEventButton *event, gpointer user_data) gboolean released(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { switch (event->button) { - case 3: + case 1: zoom_x = zoom_y = -1; break; default: