Commit 2e2a629b authored by Ludovic Fauvet's avatar Ludovic Fauvet

list views: add an option to display/hide the placeholder

parent 791d6bf7
......@@ -32,6 +32,7 @@
typedef enum list_view_create_option
{
LIST_CREATE_LIST = 1 << 1,
LIST_CREATE_PLACEHOLDER = 1 << 2,
LIST_CREATE_ALL = ~0
} list_view_create_option;
......
......@@ -103,8 +103,11 @@ list_view_common_setup(list_view* p_list_view, list_sys* p_list_sys, interface*
Evas_Object *box = p_list_sys->p_box = elm_box_add(layout);
/* Empty list label */
p_list_sys->p_empty_label = elm_label_add(box);
elm_object_text_set(p_list_sys->p_empty_label, "No content to display");
if (opts & LIST_CREATE_PLACEHOLDER)
{
p_list_sys->p_empty_label = elm_label_add(box);
elm_object_text_set(p_list_sys->p_empty_label, "No content to display");
}
/* Create genlist (if required) */
if (opts & LIST_CREATE_LIST)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment