summaryrefslogtreecommitdiff
path: root/desktop/tree.h
diff options
context:
space:
mode:
authorSteve Fryatt <steve@stevefryatt.org.uk>2010-12-19 12:27:33 +0000
committerSteve Fryatt <steve@stevefryatt.org.uk>2010-12-19 12:27:33 +0000
commit0bd39eed21fc39832cec265b2915887b0e1aa6fb (patch)
tree39aee847fa3ec332602e73f11c477e899976c454 /desktop/tree.h
parent3d62709e60562ec50ede2348849d150481a68294 (diff)
downloadnetsurf-0bd39eed21fc39832cec265b2915887b0e1aa6fb.tar.gz
netsurf-0bd39eed21fc39832cec265b2915887b0e1aa6fb.tar.bz2
Allow tree drag status to reflect drags within textareas.
svn path=/trunk/netsurf/; revision=11097
Diffstat (limited to 'desktop/tree.h')
-rw-r--r--desktop/tree.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/desktop/tree.h b/desktop/tree.h
index 032b5e213..e5abe2102 100644
--- a/desktop/tree.h
+++ b/desktop/tree.h
@@ -63,6 +63,7 @@ typedef enum {
TREE_NO_DRAG = 0,
TREE_SELECT_DRAG,
TREE_MOVE_DRAG,
+ TREE_TEXTAREA_DRAG, /** < A drag that is passed to a textarea */
TREE_UNKNOWN_DRAG /** < A drag the tree itself won't handle */
} tree_drag_type;
@@ -134,7 +135,7 @@ struct tree *tree_create(unsigned int flags,
struct node *tree_create_folder_node(struct tree *tree, struct node *parent,
const char *title, bool editable, bool retain_in_memory,
bool deleted);
-struct node *tree_create_leaf_node(struct tree *tree, struct node *parent,
+struct node *tree_create_leaf_node(struct tree *tree, struct node *parent,
const char *title, bool editable, bool retain_in_memory,
bool deleted);
struct node_element *tree_create_node_element(struct node *parent,
@@ -189,9 +190,9 @@ bool tree_mouse_action(struct tree *tree, browser_mouse_state mouse,
void tree_drag_end(struct tree *tree, browser_mouse_state mouse, int x0, int y0,
int x1, int y1);
bool tree_keypress(struct tree *tree, uint32_t key);
-
-int tree_alphabetical_sort(struct node *, struct node *);
+
+int tree_alphabetical_sort(struct node *, struct node *);
void tree_start_edit(struct tree *tree, struct node_element *element);
struct hlcache_handle *tree_load_icon(const char *name);
-
+
#endif