diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-12-02 13:24:40 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-12-02 13:24:40 +0000 |
commit | ce37fdb128c42cd623cca1e665d32250944c41c5 (patch) | |
tree | 2b7a991a8461727a8cfb5e133d6b4eaf89a0894d /amiga/drag.c | |
parent | 8d685d7ac08364591d4fdc886d922bd350925077 (diff) | |
download | netsurf-ce37fdb128c42cd623cca1e665d32250944c41c5.tar.gz netsurf-ce37fdb128c42cd623cca1e665d32250944c41c5.tar.bz2 |
Support dragging from global history to hotlist
svn path=/trunk/netsurf/; revision=13219
Diffstat (limited to 'amiga/drag.c')
-rw-r--r-- | amiga/drag.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/amiga/drag.c b/amiga/drag.c index 835db6724..2c065ef37 100644 --- a/amiga/drag.c +++ b/amiga/drag.c @@ -276,7 +276,7 @@ BOOL ami_drag_in_progress(void) return drag_in_progress; } -struct gui_window_2 *ami_find_gwin_by_id(struct Window *win) +void *ami_find_gwin_by_id(struct Window *win, int type) { struct nsObject *node, *nnode; struct gui_window_2 *gwin; @@ -289,7 +289,7 @@ struct gui_window_2 *ami_find_gwin_by_id(struct Window *win) { nnode=(struct nsObject *)GetSucc((struct Node *)node); - if(node->Type == AMINS_WINDOW) // or frame? + if(node->Type == type) { gwin = node->objstruct; if(win == gwin->win) return gwin; @@ -299,7 +299,7 @@ struct gui_window_2 *ami_find_gwin_by_id(struct Window *win) return NULL; } -struct gui_window_2 *ami_window_at_pointer(void) +void *ami_window_at_pointer(int type) { struct Layer *layer; @@ -309,6 +309,6 @@ struct gui_window_2 *ami_window_at_pointer(void) UnlockLayerInfo(&scrn->LayerInfo); - if(layer) return ami_find_gwin_by_id(layer->Window); + if(layer) return ami_find_gwin_by_id(layer->Window, type); else return NULL; } |