Commit 35e061c5 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Modularize the edje hack introduced in the previous commit

parent bf777335
......@@ -68,7 +68,7 @@
#define IMAGESPATH "images"
#define VIDEOPLAYEREDJ get_resource_path( EDJPATH "/video_player.edj")
#define AUDIOPLAYERMINIEDJ get_resource_path( EDJPATH "/audio_player_mini.edj")
#define NOCONTENTEDJ get_resource_path( EDJPATH "/no_content.edj")
#define BASICTEXTEDJ get_resource_path( EDJPATH "/basic_text.edj")
#define RES_DIR "/opt/usr/apps/" PACKAGE "/res/"
#define ICON_DIR RES_DIR "/images/"
......
......@@ -24,7 +24,7 @@
collections {
base_scale: 1.8;
group {
name: "no_content";
name: "basic_text";
parts {
part{
name: "hub_background";
......@@ -33,19 +33,16 @@ collections {
color: 255 255 255 255;
}
}
part {
name: "swallow.title";
type: TEXT;
description {
color: 120 120 120 255;
visible: 1;
text {
text: "No content to display";
size: 28;
ellipsis: 0;
}
part {
name: "swallow.main";
type: SWALLOW;
description {
state: "default" 0.0;
aspect: 1.0 1.0;
rel1 {relative: 0.5 0.5; }
rel2 {relative: 0.5 0.5; }
}
}
}
} //parts
}
}
......@@ -82,10 +82,14 @@ list_view_common_setup(list_view* p_list_view, list_sys* p_list_sys, interface*
/* Empty list */
p_list_sys->p_empty = elm_layout_add(p_list_sys->p_container);
elm_layout_file_set(p_list_sys->p_empty, NOCONTENTEDJ, "no_content");
elm_layout_file_set(p_list_sys->p_empty, BASICTEXTEDJ, "basic_text");
evas_object_size_hint_weight_set(p_list_sys->p_empty, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(p_list_sys->p_empty, EVAS_HINT_FILL, EVAS_HINT_FILL);
Evas_Object *label = elm_label_add(p_list_sys->p_empty);
elm_object_text_set(label, "No content to display");
elm_object_part_content_set(p_list_sys->p_empty, "swallow.main", label);
/* 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