summaryrefslogtreecommitdiff
path: root/desktop/tree.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-01-05 14:52:02 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-01-05 14:52:02 +0000
commit46b76915229f9dd1a58aabcddf9270ef0745b1d2 (patch)
tree133b303c12f143a7b244848a79ffeaa003e91355 /desktop/tree.c
parent3dff750ae22185c2ee7bb6f5bc7e06d84267b9b9 (diff)
downloadnetsurf-46b76915229f9dd1a58aabcddf9270ef0745b1d2.tar.gz
netsurf-46b76915229f9dd1a58aabcddf9270ef0745b1d2.tar.bz2
Start rationalising textarea widget.
Diffstat (limited to 'desktop/tree.c')
-rw-r--r--desktop/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/tree.c b/desktop/tree.c
index 8517cc122..250bdd861 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -159,7 +159,7 @@ struct tree {
int width; /* Tree width */
int height; /* Tree height */
unsigned int flags; /* Tree flags */
- struct text_area *textarea; /* Handle for UTF-8 textarea */
+ struct textarea *textarea; /* Handle for UTF-8 textarea */
bool textarea_drag_start; /* whether the start of a mouse drag
was in the textarea */
struct node_element *editing; /* Node element being edited */
@@ -2959,7 +2959,7 @@ void tree_start_edit(struct tree *tree, struct node_element *element)
if (element->type == NODE_ELEMENT_TEXT_PLUS_ICON)
width -= NODE_INSTEP;
- tree->textarea = textarea_create(width, height, 0,
+ tree->textarea = textarea_create(width, height, TEXTAREA_DEFAULT,
&plot_fstyle, tree_textarea_redraw_request, tree);
if (tree->textarea == NULL) {
tree_stop_edit(tree, false);