From: Daniel Juyung Seo Date: Wed, 6 Jul 2011 13:24:35 +0000 (+0000) Subject: elm/src/edje_externals/elm_icon.c: Fixed indentation. X-Git-Tag: v1.0.0~2626 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=254e72aaa4178d0fac0f5da585b2c701a6352cf5;p=platform%2Fupstream%2Felementary.git elm/src/edje_externals/elm_icon.c: Fixed indentation. SVN revision: 61083 --- diff --git a/src/edje_externals/elm_icon.c b/src/edje_externals/elm_icon.c index bce7a3e..0c7556a 100644 --- a/src/edje_externals/elm_icon.c +++ b/src/edje_externals/elm_icon.c @@ -18,13 +18,13 @@ external_icon_state_set(void *data __UNUSED__, Evas_Object *obj, const void *fro 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 @@ -35,15 +35,15 @@ external_icon_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Exte 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'", @@ -57,8 +57,8 @@ external_icon_param_get(void *data __UNUSED__, const Evas_Object *obj __UNUSED__ { 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'", @@ -79,21 +79,21 @@ external_icon_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__, c 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 @@ -102,7 +102,7 @@ external_icon_params_free(void *params) Elm_Params_Icon *mem = params; if (mem->icon) - eina_stringshare_del(mem->icon); + eina_stringshare_del(mem->icon); external_common_params_free(params); }