summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2011-07-04 13:54:04 +0000
committerTom Hacohen <tom@stosb.com>2011-07-04 13:54:04 +0000
commitd6946055b76922019012356db33e4796e09cd696 (patch)
tree390eff8f8c8c5b63c38329b5497acbd957f4baee
parentbd4e5e375efdd5ca515fa8a452a0cb36fbe89c59 (diff)
Tests textblock: Don't use deprecated elm API.
SVN revision: 61006
-rw-r--r--test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test.c b/test.c
index 041e480..47d6bfd 100644
--- a/test.c
+++ b/test.c
@@ -193,8 +193,9 @@ main(int argc, char *argv[])
193 } 193 }
194 else if (!strcmp(type, "elm")) 194 else if (!strcmp(type, "elm"))
195 { 195 {
196 tb = elm_scrolled_entry_add(win); 196 tb = elm_entry_add(win);
197 elm_scrolled_entry_line_wrap_set(tb, wrap); 197 elm_entry_scrollable_set(tb, EINA_TRUE);
198 elm_entry_line_wrap_set(tb, wrap);
198 } 199 }
199 200
200 evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 201 evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -226,7 +227,7 @@ main(int argc, char *argv[])
226 } 227 }
227 else if (!strcmp(type, "elm")) 228 else if (!strcmp(type, "elm"))
228 { 229 {
229 elm_scrolled_entry_entry_set(tb, buf); 230 elm_entry_entry_set(tb, buf);
230 elm_object_focus(win); 231 elm_object_focus(win);
231 } 232 }
232 free(buf); 233 free(buf);