From e19d30027afdc4591735842b353f53bea14c8238 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 14 Feb 2016 14:21:52 +0000 Subject: 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 --- amiga/tree.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'amiga/tree.c') 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; -- cgit v1.2.3