summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-02-14 14:21:52 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-02-14 14:21:52 +0000
commite19d30027afdc4591735842b353f53bea14c8238 (patch)
tree320a938a9e7ecc5a5c3bd9b2d43f73783e65c5dc
parent769eb3f13ba279240618836b2a8e15736d34a4c0 (diff)
downloadnetsurf-e19d30027afdc4591735842b353f53bea14c8238.tar.gz
netsurf-e19d30027afdc4591735842b353f53bea14c8238.tar.bz2
Remove RMB trapping from the treeviews, previously used for context menus
The context menus for treeviews were removed ages ago, and any replacement won't need RMB trapping
-rw-r--r--amiga/tree.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/amiga/tree.c b/amiga/tree.c
index 771099e21..2ca9508ca 100644
--- a/amiga/tree.c
+++ b/amiga/tree.c
@@ -104,7 +104,6 @@ struct treeview_window {
int max_height;
struct gui_globals globals;
struct sslcert_session_data *ssl_data;
- BOOL rmbtrapped;
char *wintitle;
char *sslerr;
char *sslaccept;
@@ -980,31 +979,6 @@ BOOL ami_tree_event(struct treeview_window *twin)
break;
}
- if((twin->win->MouseX - bbox->Left >=0) &&
- (twin->win->MouseX - bbox->Width - bbox->Left <=0) &&
- (twin->win->MouseY - bbox->Top >=0) &&
- (twin->win->MouseY - bbox->Height - bbox->Top <=0))
- {
- if((twin->type != AMI_TREE_SSLCERT) &&
- (twin->rmbtrapped == FALSE))
- {
-#ifdef __amigaos4__
- SetWindowAttr(twin->win, WA_RMBTrap, (APTR)(BOOL)TRUE, sizeof(BOOL));
-#endif
- twin->rmbtrapped = TRUE;
- }
- }
- else
- {
- if(twin->rmbtrapped == TRUE)
- {
-#ifdef __amigaos4__
- SetWindowAttr(twin->win, WA_RMBTrap, (APTR)(BOOL)FALSE, sizeof(BOOL));
-#endif
- twin->rmbtrapped = FALSE;
- }
- }
-
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&xs);
x = twin->win->MouseX - bbox->Left + xs;