summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-01-26 18:38:47 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-01-26 18:38:47 +0000
commit83d696ace70af1e1ae6189d72f53baf6a1aa1e72 (patch)
tree586503898ce42d04e1cc4c92028336786dbabc34
parentaa787e9730cbf5f8752c6ef233db38e41ce65aae (diff)
downloadnetsurf-83d696ace70af1e1ae6189d72f53baf6a1aa1e72.tar.gz
netsurf-83d696ace70af1e1ae6189d72f53baf6a1aa1e72.tar.bz2
This is the actual fix for the crashing, although this is temporary as the
implementation needs changing. svn path=/trunk/netsurf/; revision=6283
-rwxr-xr-xamiga/gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 1cfbf758c..db03f2d64 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -734,8 +734,8 @@ void ami_handle_msg(void)
if(option_context_menu && rmbtrapped == FALSE)
{
- SetAttrs(gwin->objects[OID_MAIN],WA_RMBTrap,TRUE);
- rmbtrapped=TRUE;
+ SetWindowAttr(gwin->win,WA_RMBTrap,TRUE,1);
+ rmbtrapped=TRUE; // crash points to this line
}
if(gwin->mouse_state & BROWSER_MOUSE_PRESS_1)
@@ -757,7 +757,7 @@ void ami_handle_msg(void)
{
if(option_context_menu && rmbtrapped == TRUE)
{
- SetAttrs(gwin->objects[OID_MAIN],WA_RMBTrap,FALSE);
+ SetWindowAttr(gwin->win,WA_RMBTrap,FALSE,1);
rmbtrapped=FALSE;
}