sd->mode == ELM_LIST_COMPRESS ? "_compress" :
"",style ? : "default");
}
-
- if (!elm_widget_theme_object_set(WIDGET(it), view,
- "genlist", buf,
- elm_widget_style_get(WIDGET(it))))
- {
+ Elm_Theme_Apply th_ret =
+ elm_widget_theme_object_set(WIDGET(it), view, "genlist", buf,
+ elm_widget_style_get(WIDGET(it)));
+ if (th_ret == ELM_THEME_APPLY_FAILED)
+ {
snprintf(buf2, sizeof(buf2), "item/%s", style ? : "default");
ERR("%s is not a valid genlist item style. fallback to %s", buf, buf2);
if (!strcmp(buf, buf2)) return EINA_FALSE;
- if (!elm_widget_theme_object_set(WIDGET(it), view,
- "genlist", buf2,
- elm_widget_style_get(WIDGET(it))))
- return EINA_FALSE;
+ th_ret = elm_widget_theme_object_set(WIDGET(it), view, "genlist", buf2,
+ elm_widget_style_get(WIDGET(it)));
+ if (th_ret == ELM_THEME_APPLY_FAILED) return EINA_FALSE;
}
return EINA_TRUE;
Eina_List *l;
snprintf(buf, sizeof(buf), "item/%s", style ? : "default");
- if (!elm_widget_theme_object_set(WIDGET(it), view, "genlist", buf,
- elm_widget_style_get(WIDGET(it))))
+
+ Elm_Theme_Apply th_ret =
+ elm_widget_theme_object_set(WIDGET(it), view, "genlist", buf,
+ elm_widget_style_get(WIDGET(it)));
+ if (th_ret == ELM_THEME_APPLY_FAILED)
{
ERR("%s is not a valid genlist item style. "
"Automatically falls back into default style.",