Ui text: use new api instead of 'style' property in the test
authorDaniel Hirt <hirt.danny@gmail.com>
Thu, 22 Jun 2017 14:17:17 +0000 (17:17 +0300)
committerDaniel Hirt <hirt.danny@gmail.com>
Mon, 17 Jul 2017 13:50:31 +0000 (16:50 +0300)
src/bin/elementary/test_efl_ui_text.c

index 32a1495..bfcbe2b 100644 (file)
@@ -27,10 +27,11 @@ static Eo *
 _create_label(Eo *win, Eo *bx)
 {
    Eo *en;
-   en = efl_add(EFL_UI_TEXT_CLASS, win);
+   en = efl_add(EFL_UI_TEXT_CLASS, win,
+         efl_text_halign_set(efl_added, EFL_TEXT_HORIZONTAL_ALIGNMENT_CENTER)
+         );
    printf("Added Efl.Ui.Text object\n");
    efl_ui_text_interactive_editable_set(en, EINA_FALSE);
-   efl_canvas_text_style_set(en, NULL, "DEFAULT='align=center font=Sans font_size=10 color=#fff wrap=word'");
 
    evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);