Elm layout: Fix the tests to use the new elm_object_text_set/get API.

SVN revision: 60808
This commit is contained in:
Tom Hacohen 2011-06-29 09:30:58 +00:00
parent 43c18d35b5
commit 845c02bf62
2 changed files with 3 additions and 3 deletions

View File

@ -1977,7 +1977,7 @@ _status_config_fonts(Evas_Object *win,
snprintf(buf, sizeof(buf), "%s/objects/font_preview.edj", PACKAGE_DATA_DIR);
preview = elm_layout_add(win);
elm_layout_file_set(preview, buf, "font_preview");
elm_layout_text_set(preview, "elm.text", "Preview Text — 我真的会写中文");
elm_object_label_set(preview, "elm.text", "Preview Text — 我真的会写中文");
evas_object_size_hint_weight_set(preview, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(preview, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(preview);

View File

@ -8,7 +8,7 @@
static void
_clicked_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
elm_layout_text_set(data, "text", elm_object_text_get(obj));
elm_object_label_set(data, "text", elm_object_text_get(obj));
}
void
@ -34,7 +34,7 @@ test_layout(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
ly = elm_layout_add(win);
elm_layout_theme_set(ly, "layout", "application", "titlebar");
elm_layout_label_set(ly, "Some title");
elm_object_text_set(ly, "Some title");
evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_box_pack_end(box, ly);