From e0fcd18ec65a2c5e1bbb143302ef88df452ec771 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 2 Jun 2015 00:57:58 +0200 Subject: [PATCH] fix duplicate inc/decrement in AutoSpin? --- libs/gtkmm2ext/auto_spin.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/gtkmm2ext/auto_spin.cc b/libs/gtkmm2ext/auto_spin.cc index 683603b964..0f4c371a09 100644 --- a/libs/gtkmm2ext/auto_spin.cc +++ b/libs/gtkmm2ext/auto_spin.cc @@ -74,6 +74,10 @@ AutoSpin::button_press (GdkEventButton *ev) stop_spinning (0); + if (ev->type == GDK_2BUTTON_PRESS || ev->type == GDK_3BUTTON_PRESS ) { + return true; + } + if (ev->state & Keyboard::TertiaryModifier) { /* use page shift */