diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-06-04 09:35:08 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-06-04 09:35:08 +0000 |
commit | b010a257712b3d104035cbfc15aba8f517ffacb5 (patch) | |
tree | ba220c9c0c2c02ea1a8441ad8ace44d4c0bc5164 /amiga | |
parent | bc9fef0a1a7a45a640d37353f97e72006e1e09b6 (diff) | |
download | netsurf-b010a257712b3d104035cbfc15aba8f517ffacb5.tar.gz netsurf-b010a257712b3d104035cbfc15aba8f517ffacb5.tar.bz2 |
+ 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
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 13 |
1 files changed, 7 insertions, 6 deletions
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; } |