From c24855b2292fc8d0f533a10eb84e83b6158e357b Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Fri, 20 May 2016 16:17:24 +0200
Subject: [PATCH] reverse button 1 and 3 to start and stop autoscroll in
 view/time.c

it seems more natural to stop autoscroll with button 3 and start it
with button 1
---
 common/utils/T/tracer/view/time.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/utils/T/tracer/view/time.c b/common/utils/T/tracer/view/time.c
index b307d3a592..287e7b1c7b 100644
--- a/common/utils/T/tracer/view/time.c
+++ b/common/utils/T/tracer/view/time.c
@@ -221,8 +221,8 @@ static void click(void *private, gui *g,
   int *d = notification_data;
   int button = *d;
 
-  if (button == 1) this->autoscroll = 0;
-  if (button == 3) this->autoscroll = 1;
+  if (button == 3) this->autoscroll = 0;
+  if (button == 1) this->autoscroll = 1;
 }
 
 view *new_view_time(int number_of_seconds, float refresh_rate,
-- 
GitLab