From b010a257712b3d104035cbfc15aba8f517ffacb5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 4 Jun 2010 09:35:08 +0000 Subject: + Refactor input handling from browser window code into content handlers. + Disentangle all box tree manipulation from browser window code and put it where it belongs. + Move other content specific and other irrelevant code from browser window handling to appropriate places. + Put mouse state enum in new mouse header, since it's not just used by browser window code, and it is used by treeview windows on the treeview branch. svn path=/trunk/netsurf/; revision=10561 --- amiga/gui.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index cf47ebc5e..bd50b8a12 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -20,6 +20,7 @@ #include "content/urldb.h" #include "css/utils.h" #include "desktop/history_core.h" +#include "desktop/mouse.h" #include "desktop/netsurf.h" #include "desktop/options.h" #include "desktop/save_complete.h" @@ -3758,14 +3759,14 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg uint32 ami_popup_hook(struct Hook *hook,Object *item,APTR reserved) { - int32 itemid = 0; + int32 itemid = 0; struct gui_window *gwin = hook->h_Data; - if(GetAttr(PMIA_ID, item, &itemid)) - { - browser_window_form_select(gwin->shared->bw,gwin->shared->control,itemid); - } + if(GetAttr(PMIA_ID, item, &itemid)) + { + form_select_process_selection(gwin->shared->bw->current_content,gwin->shared->control,itemid); + } - return itemid; + return itemid; } -- cgit v1.2.3