summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/bin/test_genlist.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c
index 0c25669e21..4c69be277d 100644
--- a/legacy/elementary/src/bin/test_genlist.c
+++ b/legacy/elementary/src/bin/test_genlist.c
@@ -3759,6 +3759,12 @@ _multi_select_frame_create(Evas_Object *bx, Genlist_Multi_Data *gd)
3759 _multi_select_changed_cb, gd); 3759 _multi_select_changed_cb, gd);
3760} 3760}
3761 3761
3762static void
3763_multi_data_free_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
3764{
3765 free(data);
3766}
3767
3762void 3768void
3763test_genlist_multi_select(void *data EINA_UNUSED, 3769test_genlist_multi_select(void *data EINA_UNUSED,
3764 Evas_Object *obj EINA_UNUSED, 3770 Evas_Object *obj EINA_UNUSED,
@@ -3771,7 +3777,7 @@ test_genlist_multi_select(void *data EINA_UNUSED,
3771 3777
3772 win = elm_win_util_standard_add("genlist-multi-select", "Genlist Multi Select"); 3778 win = elm_win_util_standard_add("genlist-multi-select", "Genlist Multi Select");
3773 elm_win_autodel_set(win, EINA_TRUE); 3779 elm_win_autodel_set(win, EINA_TRUE);
3774 evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, gd); 3780 evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _multi_data_free_cb, gd);
3775 3781
3776 bx = elm_box_add(win); 3782 bx = elm_box_add(win);
3777 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 3783 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);