else return;
if (p->icon)
- {
- edje = evas_object_smart_parent_get(obj);
- edje_object_file_get(edje, &file, NULL);
+ {
+ edje = evas_object_smart_parent_get(obj);
+ edje_object_file_get(edje, &file, NULL);
- if (!elm_icon_file_set(obj, file, p->icon))
- elm_icon_standard_set(obj, p->icon);
- }
+ if (!elm_icon_file_set(obj, file, p->icon))
+ elm_icon_standard_set(obj, p->icon);
+ }
}
static Eina_Bool
if (!strcmp(param->name, "icon"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
- {
- edje = evas_object_smart_parent_get(obj);
- edje_object_file_get(edje, &file, NULL);
-
- if (!elm_icon_file_set(obj, file, param->s))
- elm_icon_standard_set(obj, param->s);
- return EINA_TRUE;
- }
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ {
+ edje = evas_object_smart_parent_get(obj);
+ edje_object_file_get(edje, &file, NULL);
+
+ if (!elm_icon_file_set(obj, file, param->s))
+ elm_icon_standard_set(obj, param->s);
+ return EINA_TRUE;
+ }
}
ERR("unknown parameter '%s' of type '%s'",
{
if (!strcmp(param->name, "icon"))
{
- /* not easy to get icon name back from live object */
- return EINA_FALSE;
+ /* not easy to get icon name back from live object */
+ return EINA_FALSE;
}
ERR("unknown parameter '%s' of type '%s'",
return NULL;
EINA_LIST_FOREACH(params, l, param)
- {
- if (!strcmp(param->name, "icon"))
- {
- mem->icon = eina_stringshare_add(param->s);
- }
- }
+ {
+ if (!strcmp(param->name, "icon"))
+ {
+ mem->icon = eina_stringshare_add(param->s);
+ }
+ }
return mem;
}
static Evas_Object *external_icon_content_get(void *data __UNUSED__,
- const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
+ const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
{
- ERR("no content");
- return NULL;
+ ERR("no content");
+ return NULL;
}
static void
Elm_Params_Icon *mem = params;
if (mem->icon)
- eina_stringshare_del(mem->icon);
+ eina_stringshare_del(mem->icon);
external_common_params_free(params);
}