forked from enlightenment/efl
Add carousel to carousel test =P
But it's not working anyway. SVN revision: 53684
This commit is contained in:
parent
fff738fbe8
commit
3970b9f9d3
|
@ -6,7 +6,7 @@
|
|||
void
|
||||
test_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
Evas_Object *win, *bg;
|
||||
Evas_Object *win, *bg, *car;
|
||||
|
||||
win = elm_win_add(NULL, "carousel", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Carousel");
|
||||
|
@ -17,6 +17,15 @@ test_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
|
|||
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_show(bg);
|
||||
|
||||
car = elm_carousel_add(win);
|
||||
elm_win_resize_object_add(win, car);
|
||||
evas_object_size_hint_weight_set(car, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
elm_carousel_item_add(car, NULL, "Item 1", NULL, NULL);
|
||||
elm_carousel_item_add(car, NULL, "Item 2", NULL, NULL);
|
||||
elm_carousel_item_add(car, NULL, "Tinga", NULL, NULL);
|
||||
elm_carousel_item_add(car, NULL, "Item 4", NULL, NULL);
|
||||
evas_object_show(car);
|
||||
|
||||
evas_object_resize(win, 320, 240);
|
||||
evas_object_show(win);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue