From 8605c800ad9d17ed033e57de54eec73bbcad4cd9 Mon Sep 17 00:00:00 2001 From: sq8mvy Date: Tue, 28 Apr 2020 14:19:50 +0200 Subject: [PATCH] =?UTF-8?q?Added=20change=20of=20panadapter=5Flow=20and=20?= =?UTF-8?q?panadapter=5Fhigh=20values=20=E2=80=8B=E2=80=8Bin=20panadapter?= =?UTF-8?q?=20window=20by=20mouse=20wheel=20on=20the=20left=20edge=20of=20?= =?UTF-8?q?the=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- receiver.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/receiver.c b/receiver.c index aa076cf..2fef20b 100644 --- a/receiver.c +++ b/receiver.c @@ -758,7 +758,30 @@ gboolean receiver_motion_notify_event_cb(GtkWidget *widget, GdkEventMotion *even gboolean receiver_scroll_event_cb(GtkWidget *widget, GdkEventScroll *event, gpointer data) { RECEIVER *rx=(RECEIVER *)data; + int x=(int)event->x; + int y=(int)event->y; + int half=rx->panadapter_height/2; + if(!rx->locked) { + if((x>4 && x<35) && (widget==rx->panadapter)) { + if(event->direction==GDK_SCROLL_UP) { + + if(ypanadapter_high=rx->panadapter_high-5; + } else { + rx->panadapter_low=rx->panadapter_low-5; + } + return TRUE; + } else { + if(ypanadapter_high=rx->panadapter_high+5; + } else { + rx->panadapter_low=rx->panadapter_low+5; + } + return TRUE; + } + } + if(event->direction==GDK_SCROLL_UP) { if(rx->ctun) { rx->ctun_offset+=rx->step;