diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-06-04 15:03:07 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-06-04 15:03:07 +0100 |
commit | 23a0520b40a35e46aabcce5743603c3e26a74cd6 (patch) | |
tree | a1f8cf2b100217a6473d3d27401494a112b2ff77 /desktop/treeview.h | |
parent | 8692bb687697a2a5bcbeab84bae7b5d69a64f7f6 (diff) | |
download | netsurf-23a0520b40a35e46aabcce5743603c3e26a74cd6.tar.gz netsurf-23a0520b40a35e46aabcce5743603c3e26a74cd6.tar.bz2 |
Enable double click to launch from treeview.
Diffstat (limited to 'desktop/treeview.h')
-rw-r--r-- | desktop/treeview.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/desktop/treeview.h b/desktop/treeview.h index 38c22f2e3..d21a8a43b 100644 --- a/desktop/treeview.h +++ b/desktop/treeview.h @@ -39,19 +39,19 @@ enum treeview_relationship { enum treeview_msg { TREE_MSG_NODE_DELETE, - TREE_MSG_FIELD_EDIT + TREE_MSG_NODE_EDIT, + TREE_MSG_NODE_LAUNCH }; struct treeview_node_msg { enum treeview_msg msg; /**< The message type */ union { struct { - struct treeview_node *node; - } node_delete; + lwc_string *feild; /* The field being edited */ + const char *text; /* The proposed new value */ + } node_edit; /* Client may call treeview_update_node_* */ struct { - struct treeview_node *node; - lwc_string *feild; - const char *text; - } field_edit; + browser_mouse_state mouse; /* Button / modifier used */ + } node_launch; } data; /**< The message data. */ }; |