elm list - theme - make compress moder work again

someone.. somewhere along the way.. likely a long time ago.. broke
compress mode. likely the addition of the ellipsis value as an
ellipsis position or something related to that broke compatibility,
as this used to work. be that as it may... finding out just where is
virtually impossible, so fix it the simpler way - add elipsis values
This commit is contained in:
Carsten Haitzler 2015-06-09 16:25:24 +09:00
parent 51cc52f685
commit 5e79a4e211
2 changed files with 23 additions and 0 deletions

View File

@ -17,34 +17,43 @@
part { name: "elm.text"; \
description { state: "default" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "selected" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "disabled" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
} \
part { name: "label2"; \
description { state: "default" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "selected" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "disabled" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
} \
part { name: "label3"; \
description { state: "default" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "selected" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "disabled" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
} \
} \
@ -56,34 +65,43 @@
part { name: "elm.text"; \
description { state: "default" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "selected" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "disabled" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
} \
part { name: "label2"; \
description { state: "default" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "selected" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "disabled" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
} \
part { name: "label3"; \
description { state: "default" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "selected" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
description { state: "disabled" 0.0; \
text.min: 0 1; \
text.ellipsis: 0.0; \
} \
} \
part { name: "base"; \

View File

@ -820,6 +820,8 @@ _items_fix(Evas_Object *obj)
ELM_LIST_DATA_GET(obj, sd);
printf("fix....\n");
style = elm_widget_style_get(obj);
it_plain = sd->h_mode ? "h_item" : "item";
it_odd = sd->h_mode ? "h_item_odd" : "item_odd";
@ -864,6 +866,7 @@ _items_fix(Evas_Object *obj)
redo = 1;
}
printf("walk items\n");
i = 0;
EINA_LIST_FOREACH(sd->items, l, eo_it)
{
@ -883,6 +886,7 @@ _items_fix(Evas_Object *obj)
"vertical" : "horizontal", style);
else if (sd->mode == ELM_LIST_COMPRESS)
{
printf("fix item to %s\n", it_compress);
if (it->even)
elm_widget_theme_object_set
(obj, VIEW(it), "list", it_compress, style);
@ -2643,6 +2647,7 @@ _elm_list_mode_set(Eo *obj, Elm_List_Data *sd, Elm_List_Mode mode)
sd->mode = mode;
_elm_list_mode_set_internal(obj);
_items_fix(obj);
}
EOLIAN static Elm_List_Mode