summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-08 01:55:45 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2017-01-08 01:55:45 (GMT)
commit074afb43f424d671ce6d00b140df851a26f3ddd7 (patch)
tree19dbed2a9b7f1f6ee662f943a4e81180e5df18c2
parent3436c097d2be579440a021fe418d22957db7dbe6 (diff)
downloadnetsurf-074afb43f424d671ce6d00b140df851a26f3ddd7.tar.gz
netsurf-074afb43f424d671ce6d00b140df851a26f3ddd7.tar.bz2
Process in-window scrollbars using IDCMPUPDATE too
-rw-r--r--frontends/amiga/corewindow.c16
-rw-r--r--frontends/amiga/sslcert.c3
2 files changed, 3 insertions, 16 deletions
diff --git a/frontends/amiga/corewindow.c b/frontends/amiga/corewindow.c
index 1bfd6c4..548ecac 100644
--- a/frontends/amiga/corewindow.c
+++ b/frontends/amiga/corewindow.c
@@ -689,22 +689,6 @@ ami_cw_event(void *w)
return TRUE;
break;
- case WMHI_GADGETUP:
- switch(result & WMHI_GADGETMASK) {
- case GID_CW_HSCROLL:
- case GID_CW_VSCROLL:
- ami_cw_redraw(ami_cw, NULL);
- break;
-
- default:
- /* pass the event to the window owner */
- if(ami_cw->event != NULL)
- if(ami_cw->event(ami_cw, result) == TRUE) {
- return TRUE;
- }
- break;
- }
-
default:
/* pass the event to the window owner */
if(ami_cw->event != NULL)
diff --git a/frontends/amiga/sslcert.c b/frontends/amiga/sslcert.c
index 28f3a4d..2cb3d8e 100644
--- a/frontends/amiga/sslcert.c
+++ b/frontends/amiga/sslcert.c
@@ -33,6 +33,7 @@
#include <gadgets/space.h>
#include <images/label.h>
+#include <intuition/icclass.h>
#include <reaction/reaction_macros.h>
#include "utils/log.h"
@@ -251,11 +252,13 @@ ami_crtvrfy_create_window(struct ami_crtvrfy_window *crtvrfy_win)
LAYOUT_AddChild, ami_cw->objects[GID_CW_VSCROLL] = ScrollerObj,
GA_ID, GID_CW_VSCROLL,
GA_RelVerify, TRUE,
+ ICA_TARGET, ICTARGET_IDCMP,
ScrollerEnd,
LayoutEnd,
LAYOUT_AddChild, ami_cw->objects[GID_CW_HSCROLL] = ScrollerObj,
GA_ID, GID_CW_HSCROLL,
GA_RelVerify, TRUE,
+ ICA_TARGET, ICTARGET_IDCMP,
SCROLLER_Orientation, SORIENT_HORIZ,
ScrollerEnd,
LayoutEnd,