summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/edje_externals/elm_icon.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2011-07-06 13:24:35 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2011-07-06 13:24:35 +0000
commit159aba2ca72634dd06bb35a3e053a553d8dfd743 (patch)
tree7a6667bef7a0d450064cb58834a0b290221a04c1 /legacy/elementary/src/edje_externals/elm_icon.c
parent71be031c86abe3f9009a05ed0ea6aea4e2b423dd (diff)
elm/src/edje_externals/elm_icon.c: Fixed indentation.
SVN revision: 61083
Diffstat (limited to 'legacy/elementary/src/edje_externals/elm_icon.c')
-rw-r--r--legacy/elementary/src/edje_externals/elm_icon.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/legacy/elementary/src/edje_externals/elm_icon.c b/legacy/elementary/src/edje_externals/elm_icon.c
index bce7a3e..0c7556a 100644
--- a/legacy/elementary/src/edje_externals/elm_icon.c
+++ b/legacy/elementary/src/edje_externals/elm_icon.c
@@ -18,13 +18,13 @@ external_icon_state_set(void *data __UNUSED__, Evas_Object *obj, const void *fro
18 else return; 18 else return;
19 19
20 if (p->icon) 20 if (p->icon)
21 { 21 {
22 edje = evas_object_smart_parent_get(obj); 22 edje = evas_object_smart_parent_get(obj);
23 edje_object_file_get(edje, &file, NULL); 23 edje_object_file_get(edje, &file, NULL);
24 24
25 if (!elm_icon_file_set(obj, file, p->icon)) 25 if (!elm_icon_file_set(obj, file, p->icon))
26 elm_icon_standard_set(obj, p->icon); 26 elm_icon_standard_set(obj, p->icon);
27 } 27 }
28} 28}
29 29
30static Eina_Bool 30static Eina_Bool
@@ -35,15 +35,15 @@ external_icon_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Exte
35 35
36 if (!strcmp(param->name, "icon")) 36 if (!strcmp(param->name, "icon"))
37 { 37 {
38 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 38 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
39 { 39 {
40 edje = evas_object_smart_parent_get(obj); 40 edje = evas_object_smart_parent_get(obj);
41 edje_object_file_get(edje, &file, NULL); 41 edje_object_file_get(edje, &file, NULL);
42 42
43 if (!elm_icon_file_set(obj, file, param->s)) 43 if (!elm_icon_file_set(obj, file, param->s))
44 elm_icon_standard_set(obj, param->s); 44 elm_icon_standard_set(obj, param->s);
45 return EINA_TRUE; 45 return EINA_TRUE;
46 } 46 }
47 } 47 }
48 48
49 ERR("unknown parameter '%s' of type '%s'", 49 ERR("unknown parameter '%s' of type '%s'",
@@ -57,8 +57,8 @@ external_icon_param_get(void *data __UNUSED__, const Evas_Object *obj __UNUSED__
57{ 57{
58 if (!strcmp(param->name, "icon")) 58 if (!strcmp(param->name, "icon"))
59 { 59 {
60 /* not easy to get icon name back from live object */ 60 /* not easy to get icon name back from live object */
61 return EINA_FALSE; 61 return EINA_FALSE;
62 } 62 }
63 63
64 ERR("unknown parameter '%s' of type '%s'", 64 ERR("unknown parameter '%s' of type '%s'",
@@ -79,21 +79,21 @@ external_icon_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__, c
79 return NULL; 79 return NULL;
80 80
81 EINA_LIST_FOREACH(params, l, param) 81 EINA_LIST_FOREACH(params, l, param)
82 { 82 {
83 if (!strcmp(param->name, "icon")) 83 if (!strcmp(param->name, "icon"))
84 { 84 {
85 mem->icon = eina_stringshare_add(param->s); 85 mem->icon = eina_stringshare_add(param->s);
86 } 86 }
87 } 87 }
88 88
89 return mem; 89 return mem;
90} 90}
91 91
92static Evas_Object *external_icon_content_get(void *data __UNUSED__, 92static Evas_Object *external_icon_content_get(void *data __UNUSED__,
93 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__) 93 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
94{ 94{
95 ERR("no content"); 95 ERR("no content");
96 return NULL; 96 return NULL;
97} 97}
98 98
99static void 99static void
@@ -102,7 +102,7 @@ external_icon_params_free(void *params)
102 Elm_Params_Icon *mem = params; 102 Elm_Params_Icon *mem = params;
103 103
104 if (mem->icon) 104 if (mem->icon)
105 eina_stringshare_del(mem->icon); 105 eina_stringshare_del(mem->icon);
106 external_common_params_free(params); 106 external_common_params_free(params);
107} 107}
108 108