ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- if (flags == ELM_GENLIST_ITEM_GROUP) flags = ELM_GENLIST_ITEM_NONE;
+ if (parent && (parent->flags == ELM_GENLIST_ITEM_GROUP)) parent = NULL;
Elm_Genlist_Item *it = _item_new(wd, itc, data, parent, flags, func,
func_data);
if (!it) return NULL;
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- if (flags == ELM_GENLIST_ITEM_GROUP) flags = ELM_GENLIST_ITEM_NONE;
+ if (parent && (parent->flags == ELM_GENLIST_ITEM_GROUP)) parent = NULL;
Elm_Genlist_Item *it = _item_new(wd, itc, data, parent, flags, func,
func_data);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EINA_SAFETY_ON_NULL_RETURN_VAL(wd->items, NULL);
- if (flags == ELM_GENLIST_ITEM_GROUP) flags = ELM_GENLIST_ITEM_NONE;
+ if (parent && (parent->flags == ELM_GENLIST_ITEM_GROUP)) parent = NULL;
Elm_Genlist_Item *it = _item_new(wd, itc, data, parent, flags, func,
func_data);
if (!it) return NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
EINA_SAFETY_ON_NULL_RETURN_VAL(wd->items, NULL);
- if (flags == ELM_GENLIST_ITEM_GROUP) flags = ELM_GENLIST_ITEM_NONE;
+ if (parent && (parent->flags == ELM_GENLIST_ITEM_GROUP)) parent = NULL;
Elm_Genlist_Item *it = _item_new(wd, itc, data, parent, flags, func,
func_data);
if (!it) return NULL;