From ae09b6c489a06b03d54d7510b00e2945336efb53 Mon Sep 17 00:00:00 2001 From: seoz Date: Wed, 6 Jul 2011 13:24:35 +0000 Subject: [PATCH] elm/src/edje_externals/elm_icon.c: Fixed indentation. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61083 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/edje_externals/elm_icon.c | 54 +++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 27 deletions(-) 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); } -- 2.7.4