From 4147c185c8d547e041c1d0c81c283ef0c7942cc8 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 2 Jul 2011 11:41:06 +0000 Subject: 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 --- desktop/tree.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop/tree.h') 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); -- cgit v1.2.3