summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen okra Houston <smhouston88@gmail.com>2016-08-26 10:37:26 -0500
committerStephen okra Houston <smhouston88@gmail.com>2016-08-26 10:37:26 -0500
commit1e458450cd2ae639bda523a08c931ba44489fdfe (patch)
tree6387c8f84bf6bcc5a46e27241d1ff1804cbd975c /src
parent19cf910321fa8983ae217295f83be7ce2f464ca3 (diff)
Elementary: Genlist Tree Test - Add an item with the indent style to match tree style.
Diffstat (limited to 'src')
-rw-r--r--src/bin/elementary/test_genlist.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bin/elementary/test_genlist.c b/src/bin/elementary/test_genlist.c
index afceb46..91a6205 100644
--- a/src/bin/elementary/test_genlist.c
+++ b/src/bin/elementary/test_genlist.c
@@ -1639,6 +1639,13 @@ test_genlist6(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
1639 api->itc2->func.state_get = gl4_state_get; 1639 api->itc2->func.state_get = gl4_state_get;
1640 api->itc2->func.del = gl4_del; 1640 api->itc2->func.del = gl4_del;
1641 1641
1642 api->itc = elm_genlist_item_class_new();
1643 api->itc->item_style = "indent";
1644 api->itc->func.text_get = gl4_text_get;
1645 api->itc->func.content_get = gl4_content_get;
1646 api->itc->func.state_get = gl4_state_get;
1647 api->itc->func.del = gl4_del;
1648
1642 elm_genlist_item_append(gl, api->itc2, 1649 elm_genlist_item_append(gl, api->itc2,
1643 (void *)1/* item data */, NULL/* parent */, 1650 (void *)1/* item data */, NULL/* parent */,
1644 ELM_GENLIST_ITEM_TREE, gl4_sel/* func */, 1651 ELM_GENLIST_ITEM_TREE, gl4_sel/* func */,
@@ -1647,13 +1654,18 @@ test_genlist6(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
1647 (void *)2/* item data */, NULL/* parent */, 1654 (void *)2/* item data */, NULL/* parent */,
1648 ELM_GENLIST_ITEM_TREE, gl4_sel/* func */, 1655 ELM_GENLIST_ITEM_TREE, gl4_sel/* func */,
1649 NULL/* func data */); 1656 NULL/* func data */);
1650 elm_genlist_item_append(gl, api->itc1, 1657 elm_genlist_item_append(gl, api->itc,
1651 (void *)3/* item data */, NULL/* parent */, 1658 (void *)3/* item data */, NULL/* parent */,
1652 ELM_GENLIST_ITEM_NONE, gl4_sel/* func */, 1659 ELM_GENLIST_ITEM_NONE, gl4_sel/* func */,
1653 NULL/* func data */); 1660 NULL/* func data */);
1661 elm_genlist_item_append(gl, api->itc1,
1662 (void *)4/* item data */, NULL/* parent */,
1663 ELM_GENLIST_ITEM_NONE, gl4_sel/* func */,
1664 NULL/* func data */);
1654 1665
1655 elm_genlist_item_class_free(api->itc1); 1666 elm_genlist_item_class_free(api->itc1);
1656 elm_genlist_item_class_free(api->itc2); 1667 elm_genlist_item_class_free(api->itc2);
1668 elm_genlist_item_class_free(api->itc);
1657 1669
1658 evas_object_smart_callback_add(gl, "expand,request", gl4_exp_req, api); 1670 evas_object_smart_callback_add(gl, "expand,request", gl4_exp_req, api);
1659 evas_object_smart_callback_add(gl, "contract,request", gl4_con_req, api); 1671 evas_object_smart_callback_add(gl, "contract,request", gl4_con_req, api);