diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-09-12 10:58:19 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-09-12 10:58:19 +0100 |
commit | 0e5667e28e1a31da06a797a93b72ecb1942d28b9 (patch) | |
tree | 2d5ccf7d61192d78f0662845fd6a533ca72ab26c /amiga/context_menu.c | |
parent | 9af55136d0c899492f20466f8c96b3ba24302e68 (diff) | |
download | netsurf-0e5667e28e1a31da06a797a93b72ecb1942d28b9.tar.gz netsurf-0e5667e28e1a31da06a797a93b72ecb1942d28b9.tar.bz2 |
Botched fixes just to get it to compile again
Diffstat (limited to 'amiga/context_menu.c')
-rw-r--r-- | amiga/context_menu.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/amiga/context_menu.c b/amiga/context_menu.c index 27678dbc5..797f5810b 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -1220,7 +1220,12 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r switch(itemid) { case CMID_TREE_LAUNCH: - tree_launch_selected(tree, true); + tree_mouse_action(tree, BROWSER_MOUSE_DOUBLE_CLICK, 0, 0); + /**TODO: this needs fixing. ^^^^ + (a) the mouse co-ordinates where the context menu was opened are not propagated and + (b) does a double-click here open ALL selected entries? + (c) what happens if the user right-clicked over a non-selected entry with others selected? + **/ break; case CMID_TREE_EDITFOLDER: @@ -1256,7 +1261,7 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r break; case CMID_TREE_DELETE: - tree_delete_selected_nodes(tree, userdata); + tree_keypress(tree, KEY_DELETE_RIGHT); break; } } |