const char *stacking;
if (it->level != level) continue;
+
+//FIXME: Need to check. This cause one less items show up.
+// if(i > wd->max_supp_items_count) break;
+
o = edje_object_add(evas_object_evas_get(obj));
VIEW(it) = o;
edje_object_mirrored_set(VIEW(it), rtl);
elm_widget_style_get(obj));
}
- edje_object_part_text_set(o, "elm.text", it->letter);
+ edje_object_part_text_escaped_set(o, "elm.text", it->letter);
edje_object_size_min_restricted_calc(o, &mw, &mh, 0, 0);
evas_object_size_hint_min_set(o, mw, mh);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
if (it_closest)
{
it = it_closest;
- if (!last)
+ if (!last && it->letter)
last = strdup(it->letter);
else
{
- if (!label) label = strdup(last);
+ if (!label && last) label = strdup(last);
else
{
- label = realloc(label, strlen(label) + strlen(last) + 1);
- if (!label) return;
- strcat(label, last);
+ if (label && last)
+ {
+ label = realloc(label, strlen(label) +
+ strlen(last) + 1);
+ if (!label) return;
+ strcat(label, last);
+ }
}
free(last);
- last = strdup(it->letter);
+ if (it->letter) last = strdup(it->letter);
}
}
}
-
if (!label) label = strdup("");
if (!last) last = strdup("");
- edje_object_part_text_set(wd->base, "elm.text.body", label);
- edje_object_part_text_set(wd->base, "elm.text", last);
+ edje_object_part_text_escaped_set(wd->base, "elm.text.body", label);
+ edje_object_part_text_escaped_set(wd->base, "elm.text", last);
free(label);
free(last);
}
else
edje_object_signal_emit(wd->base, "elm,state,inactive", "elm");
- //FIXME: Should be update indicator based on the indicator visiblility
+ //FIXME: Should be update indicator based on the indicator visiblility
}
EAPI Eina_Bool
Widget_Data *wd = elm_widget_data_get(WIDGET(it));
if (!wd) return;
- //FIXME: Should be update indicator based on the autohidden status & indicator visiblility
+ //FIXME: Should be update indicator based on the autohidden status & indicator visiblility
if (selected)
{
}
-EINA_DEPRECATED EAPI Elm_Object_Item *
-elm_index_item_selected_get(const Evas_Object *obj, int level)
-{
- return elm_index_selected_item_get(obj, level);
-}
-
EAPI Elm_Object_Item *
elm_index_selected_item_get(const Evas_Object *obj, int level)
{
if (!wd) return EINA_FALSE;
return wd->horizontal;
}
-
-