summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2011-05-08 08:59:38 +0000
committerTom Hacohen <tom@stosb.com>2011-05-08 08:59:38 +0000
commitecb2bdd0c19e39ef377027419e62601f9e06f4c8 (patch)
tree40b99fb24f7378703528768767c243b4a1e0023d
parent66ede45a9d0a1b679e80597be5be577142068541 (diff)
Tests textblock: Fixed focus issue with edje and elm.
SVN revision: 59269
-rw-r--r--test.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/test.c b/test.c
index 1de0bef..1288525 100644
--- a/test.c
+++ b/test.c
@@ -181,6 +181,9 @@ main(int argc, char *argv[])
181 evas_object_resize(win, w, h); 181 evas_object_resize(win, w, h);
182 evas_object_resize(tb, w, h); 182 evas_object_resize(tb, w, h);
183 183
184 evas_object_show(tb);
185 evas_object_show(win);
186
184 /* Set the text */ 187 /* Set the text */
185 { 188 {
186 char *buf = _load_file(filename); 189 char *buf = _load_file(filename);
@@ -192,20 +195,16 @@ main(int argc, char *argv[])
192 else if (!strcmp(type, "edje")) 195 else if (!strcmp(type, "edje"))
193 { 196 {
194 edje_object_part_text_set(tb, "elm.text", buf); 197 edje_object_part_text_set(tb, "elm.text", buf);
198 evas_object_focus_set(tb, EINA_TRUE);
195 } 199 }
196 else if (!strcmp(type, "elm")) 200 else if (!strcmp(type, "elm"))
197 { 201 {
198 elm_scrolled_entry_entry_set(tb, buf); 202 elm_scrolled_entry_entry_set(tb, buf);
203 elm_object_focus(win);
199 } 204 }
200 free(buf); 205 free(buf);
201 } 206 }
202 207
203 evas_object_show(tb);
204 /* End of interesting */
205
206 evas_object_show(win);
207 evas_object_focus_set(tb, EINA_TRUE);
208
209 elm_run(); 208 elm_run();
210 return 0; 209 return 0;
211} 210}