summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/edje_externals/elm_icon.c
diff options
context:
space:
mode:
authorJihoon Kim <imfine98@gmail.com>2012-03-02 09:00:52 +0000
committerJihoon Kim <imfine98@gmail.com>2012-03-02 09:00:52 +0000
commit8575a8ab263796608246069d0d6cb9fc75464519 (patch)
tree8617e6eacd2edd544e60e7ea25109ed3688fc4f4 /legacy/elementary/src/edje_externals/elm_icon.c
parent123bcbfc0648025962225afacfb0eb1a96d953d7 (diff)
elm/edje_externals: fix formatting
SVN revision: 68620
Diffstat (limited to 'legacy/elementary/src/edje_externals/elm_icon.c')
-rw-r--r--legacy/elementary/src/edje_externals/elm_icon.c170
1 files changed, 85 insertions, 85 deletions
diff --git a/legacy/elementary/src/edje_externals/elm_icon.c b/legacy/elementary/src/edje_externals/elm_icon.c
index 3d2ca29..199e7dc 100644
--- a/legacy/elementary/src/edje_externals/elm_icon.c
+++ b/legacy/elementary/src/edje_externals/elm_icon.c
@@ -38,46 +38,46 @@ external_icon_state_set(void *data __UNUSED__, Evas_Object *obj,
38 if (p->file) 38 if (p->file)
39 { 39 {
40 elm_icon_file_set(obj, p->file, NULL); 40 elm_icon_file_set(obj, p->file, NULL);
41 param_icon->file = p->file; 41 param_icon->file = p->file;
42 } 42 }
43 if (p->smooth_exists) 43 if (p->smooth_exists)
44 { 44 {
45 elm_icon_smooth_set(obj, p->smooth); 45 elm_icon_smooth_set(obj, p->smooth);
46 param_icon->smooth = p->smooth; 46 param_icon->smooth = p->smooth;
47 } 47 }
48 if (p->no_scale_exists) 48 if (p->no_scale_exists)
49 { 49 {
50 elm_icon_no_scale_set(obj, p->no_scale); 50 elm_icon_no_scale_set(obj, p->no_scale);
51 param_icon->no_scale = p->no_scale; 51 param_icon->no_scale = p->no_scale;
52 } 52 }
53 if (p->scale_up_exists && p->scale_down_exists) 53 if (p->scale_up_exists && p->scale_down_exists)
54 { 54 {
55 elm_icon_scale_set(obj, p->scale_up, p->scale_down); 55 elm_icon_scale_set(obj, p->scale_up, p->scale_down);
56 param_icon->scale_up = p->scale_up; 56 param_icon->scale_up = p->scale_up;
57 param_icon->scale_down = p->scale_down; 57 param_icon->scale_down = p->scale_down;
58 } 58 }
59 else if (p->scale_up_exists || p->scale_down_exists) 59 else if (p->scale_up_exists || p->scale_down_exists)
60 { 60 {
61 if (p->scale_up_exists) 61 if (p->scale_up_exists)
62 { 62 {
63 elm_icon_scale_set(obj, p->scale_up, param_icon->scale_down); 63 elm_icon_scale_set(obj, p->scale_up, param_icon->scale_down);
64 param_icon->scale_up = p->scale_up; 64 param_icon->scale_up = p->scale_up;
65 } 65 }
66 else 66 else
67 { 67 {
68 elm_icon_scale_set(obj, param_icon->scale_up, p->scale_down); 68 elm_icon_scale_set(obj, param_icon->scale_up, p->scale_down);
69 param_icon->scale_down = p->scale_down; 69 param_icon->scale_down = p->scale_down;
70 } 70 }
71 } 71 }
72 if (p->fill_outside_exists) 72 if (p->fill_outside_exists)
73 { 73 {
74 elm_icon_fill_outside_set(obj, p->fill_outside); 74 elm_icon_fill_outside_set(obj, p->fill_outside);
75 param_icon->fill_outside = p->fill_outside; 75 param_icon->fill_outside = p->fill_outside;
76 } 76 }
77 if (p->prescale_size_exists) 77 if (p->prescale_size_exists)
78 { 78 {
79 elm_icon_prescale_set(obj, p->prescale_size); 79 elm_icon_prescale_set(obj, p->prescale_size);
80 param_icon->prescale_size = p->prescale_size; 80 param_icon->prescale_size = p->prescale_size;
81 } 81 }
82 if (p->icon) 82 if (p->icon)
83 { 83 {
@@ -105,46 +105,46 @@ external_icon_param_set(void *data __UNUSED__, Evas_Object *obj,
105 return ret; 105 return ret;
106 } 106 }
107 else if (!strcmp(param->name, "smooth") 107 else if (!strcmp(param->name, "smooth")
108 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 108 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
109 { 109 {
110 elm_icon_smooth_set(obj, param->i); 110 elm_icon_smooth_set(obj, param->i);
111 param_icon->smooth = param->i; 111 param_icon->smooth = param->i;
112 return EINA_TRUE; 112 return EINA_TRUE;
113 } 113 }
114 else if (!strcmp(param->name, "no scale") 114 else if (!strcmp(param->name, "no scale")
115 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 115 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
116 { 116 {
117 elm_icon_no_scale_set(obj, param->i); 117 elm_icon_no_scale_set(obj, param->i);
118 param_icon->no_scale = param->i; 118 param_icon->no_scale = param->i;
119 return EINA_TRUE; 119 return EINA_TRUE;
120 } 120 }
121 else if (!strcmp(param->name, "scale up") 121 else if (!strcmp(param->name, "scale up")
122 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 122 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
123 { 123 {
124 elm_icon_scale_set(obj, param->i, param_icon->scale_down); 124 elm_icon_scale_set(obj, param->i, param_icon->scale_down);
125 param_icon->scale_up = param->i; 125 param_icon->scale_up = param->i;
126 return EINA_TRUE; 126 return EINA_TRUE;
127 } 127 }
128 else if (!strcmp(param->name, "scale down") 128 else if (!strcmp(param->name, "scale down")
129 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 129 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
130 { 130 {
131 elm_icon_scale_set(obj, param_icon->scale_up, param->i); 131 elm_icon_scale_set(obj, param_icon->scale_up, param->i);
132 param_icon->scale_down = param->i; 132 param_icon->scale_down = param->i;
133 return EINA_TRUE; 133 return EINA_TRUE;
134 } 134 }
135 else if (!strcmp(param->name, "fill outside") 135 else if (!strcmp(param->name, "fill outside")
136 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 136 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
137 { 137 {
138 elm_icon_fill_outside_set(obj, param->i); 138 elm_icon_fill_outside_set(obj, param->i);
139 param_icon->fill_outside = param->i; 139 param_icon->fill_outside = param->i;
140 return EINA_TRUE; 140 return EINA_TRUE;
141 } 141 }
142 else if (!strcmp(param->name, "prescale") 142 else if (!strcmp(param->name, "prescale")
143 && param->type == EDJE_EXTERNAL_PARAM_TYPE_INT) 143 && param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
144 { 144 {
145 elm_icon_prescale_set(obj, param->i); 145 elm_icon_prescale_set(obj, param->i);
146 param_icon->prescale_size = param->i; 146 param_icon->prescale_size = param->i;
147 return EINA_TRUE; 147 return EINA_TRUE;
148 } 148 }
149 else if (!strcmp(param->name, "icon")) 149 else if (!strcmp(param->name, "icon"))
150 { 150 {
@@ -174,43 +174,43 @@ external_icon_param_get(void *data __UNUSED__,
174 && param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 174 && param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
175 { 175 {
176 param->s = param_icon->file; 176 param->s = param_icon->file;
177 return EINA_TRUE; 177 return EINA_TRUE;
178 } 178 }
179 else if (!strcmp(param->name, "smooth") 179 else if (!strcmp(param->name, "smooth")
180 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 180 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
181 { 181 {
182 param->i = param_icon->smooth; 182 param->i = param_icon->smooth;
183 return EINA_TRUE; 183 return EINA_TRUE;
184 } 184 }
185 else if (!strcmp(param->name, "no scale") 185 else if (!strcmp(param->name, "no scale")
186 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 186 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
187 { 187 {
188 param->i = param_icon->no_scale; 188 param->i = param_icon->no_scale;
189 return EINA_TRUE; 189 return EINA_TRUE;
190 } 190 }
191 else if (!strcmp(param->name, "scale up") 191 else if (!strcmp(param->name, "scale up")
192 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 192 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
193 { 193 {
194 param->i = param_icon->scale_up; 194 param->i = param_icon->scale_up;
195 return EINA_TRUE; 195 return EINA_TRUE;
196 } 196 }
197 else if (!strcmp(param->name, "scale down") 197 else if (!strcmp(param->name, "scale down")
198 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 198 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
199 { 199 {
200 param->i = param_icon->scale_down; 200 param->i = param_icon->scale_down;
201 return EINA_TRUE; 201 return EINA_TRUE;
202 } 202 }
203 else if (!strcmp(param->name, "fill outside") 203 else if (!strcmp(param->name, "fill outside")
204 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 204 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
205 { 205 {
206 param->i = param_icon->fill_outside; 206 param->i = param_icon->fill_outside;
207 return EINA_TRUE; 207 return EINA_TRUE;
208 } 208 }
209 else if (!strcmp(param->name, "prescale") 209 else if (!strcmp(param->name, "prescale")
210 && param->type == EDJE_EXTERNAL_PARAM_TYPE_INT) 210 && param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
211 { 211 {
212 param->i = param_icon->prescale_size; 212 param->i = param_icon->prescale_size;
213 return EINA_TRUE; 213 return EINA_TRUE;
214 } 214 }
215 else if (!strcmp(param->name, "icon")) 215 else if (!strcmp(param->name, "icon"))
216 { 216 {
@@ -239,36 +239,36 @@ external_icon_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__,
239 EINA_LIST_FOREACH(params, l, param) 239 EINA_LIST_FOREACH(params, l, param)
240 { 240 {
241 if (!strcmp(param->name, "file")) 241 if (!strcmp(param->name, "file"))
242 mem->file = eina_stringshare_add(param->s); 242 mem->file = eina_stringshare_add(param->s);
243 else if (!strcmp(param->name, "smooth")) 243 else if (!strcmp(param->name, "smooth"))
244 { 244 {
245 mem->smooth = param->i; 245 mem->smooth = param->i;
246 mem->smooth_exists = EINA_TRUE; 246 mem->smooth_exists = EINA_TRUE;
247 } 247 }
248 else if (!strcmp(param->name, "no scale")) 248 else if (!strcmp(param->name, "no scale"))
249 { 249 {
250 mem->no_scale = param->i; 250 mem->no_scale = param->i;
251 mem->no_scale_exists = EINA_TRUE; 251 mem->no_scale_exists = EINA_TRUE;
252 } 252 }
253 else if (!strcmp(param->name, "scale up")) 253 else if (!strcmp(param->name, "scale up"))
254 { 254 {
255 mem->scale_up = param->i; 255 mem->scale_up = param->i;
256 mem->scale_up_exists = EINA_TRUE; 256 mem->scale_up_exists = EINA_TRUE;
257 } 257 }
258 else if (!strcmp(param->name, "scale down")) 258 else if (!strcmp(param->name, "scale down"))
259 { 259 {
260 mem->scale_down = param->i; 260 mem->scale_down = param->i;
261 mem->scale_down_exists = EINA_TRUE; 261 mem->scale_down_exists = EINA_TRUE;
262 } 262 }
263 else if (!strcmp(param->name, "fill outside")) 263 else if (!strcmp(param->name, "fill outside"))
264 { 264 {
265 mem->fill_outside = param->i; 265 mem->fill_outside = param->i;
266 mem->fill_outside_exists = EINA_TRUE; 266 mem->fill_outside_exists = EINA_TRUE;
267 } 267 }
268 else if (!strcmp(param->name, "prescale")) 268 else if (!strcmp(param->name, "prescale"))
269 { 269 {
270 mem->prescale_size = param->i; 270 mem->prescale_size = param->i;
271 mem->prescale_size_exists = EINA_TRUE; 271 mem->prescale_size_exists = EINA_TRUE;
272 } 272 }
273 else if (!strcmp(param->name, "icon")) 273 else if (!strcmp(param->name, "icon"))
274 { 274 {