diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-07-02 11:41:06 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-07-02 11:41:06 +0000 |
commit | 4147c185c8d547e041c1d0c81c283ef0c7942cc8 (patch) | |
tree | ebb76bbff7bf4e6a628f125bd02d470d76643215 /desktop/tree.h | |
parent | f9566b64050c76c9fc78a0b691cf8c83643c847b (diff) | |
download | netsurf-4147c185c8d547e041c1d0c81c283ef0c7942cc8.tar.gz netsurf-4147c185c8d547e041c1d0c81c283ef0c7942cc8.tar.bz2 |
When launching multiple URLs from a treeview, allow to open one window with multiple
tabs instead of one window per URL. Make compatible frontends do this by default.
svn path=/trunk/netsurf/; revision=12552
Diffstat (limited to 'desktop/tree.h')
-rw-r--r-- | desktop/tree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/tree.h b/desktop/tree.h index e3dc8c98a..0ff8948bc 100644 --- a/desktop/tree.h +++ b/desktop/tree.h @@ -54,6 +54,7 @@ enum tree_flags { * to indicate teh type of data a node element contains. */ #define TREE_ELEMENT_TITLE 0x00 +#define TREE_ELEMENT_LAUNCH_IN_TABS 0x05 /* Launch in tabs instead of windows */ struct tree; struct node; @@ -102,6 +103,7 @@ struct node_msg_data { union { char *text; /**< textural data. */ void *bitmap; /**< bitmap data. */ + struct browser_window *bw; /**< clone browser_window. */ } data; /**< The message data. */ }; @@ -186,7 +188,7 @@ void tree_delete_selected_nodes(struct tree *tree, struct node *node); struct node *tree_get_selected_node(struct node *node); struct node *tree_get_link_details(struct tree *tree, int x, int y, bool *before); -void tree_launch_selected(struct tree *tree); +void tree_launch_selected(struct tree *tree, bool tabs); bool tree_mouse_action(struct tree *tree, browser_mouse_state mouse, int x, int y); |