aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-12-17 20:02:58 +0100
committerjcid <devnull@localhost>2007-12-17 20:02:58 +0100
commitfc0c0fdfcbcefdaf98d60c4b6f644855af18454f (patch)
treecd47fdef993d13d80f5ac286cbc983e9cd4f6e9f /src
parent0a60abf2adccdfeb6c5b618f807bfa5e86f8a7fb (diff)
Made reset work for TEXTAREA.
Diffstat (limited to 'src')
-rw-r--r--src/html.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/html.cc b/src/html.cc
index 9b7f8286..c6ee4132 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3626,10 +3626,11 @@ static void Html_reset_input(DilloHtmlInput *input)
break;
case DILLO_HTML_INPUT_TEXTAREA:
if (input->init_str != NULL) {
-// int pos = 0;
-// gtk_editable_delete_text(GTK_EDITABLE(input->widget), 0, -1);
-// gtk_editable_insert_text(GTK_EDITABLE(input->widget), input->init_str,
-// strlen(input->init_str), &pos);
+ MultiLineTextResource *textres;
+ textres =
+ (MultiLineTextResource*)
+ ((Embed*)input->widget)->getResource();
+ textres->setText(input->init_str ? input->init_str : "");
}
break;
default: