summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm_gengrid.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
commita0dbfad70f52ef2393fd710d3e47c9116238f361 (patch)
tree0490e91e24c47657f2d999710953c6e827d2d684 /src/edje_externals/elm_gengrid.c
parent9bdd46b35c05a8375de99519421d3de0975902f5 (diff)
elm/edje_externals: fix formatting
SVN revision: 68620
Diffstat (limited to 'src/edje_externals/elm_gengrid.c')
-rw-r--r--src/edje_externals/elm_gengrid.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/edje_externals/elm_gengrid.c b/src/edje_externals/elm_gengrid.c
index 6c3bf0701..56a222130 100644
--- a/src/edje_externals/elm_gengrid.c
+++ b/src/edje_externals/elm_gengrid.c
@@ -85,11 +85,11 @@ external_gengrid_state_set(void *data __UNUSED__, Evas_Object *obj, const void *
85 else if (p->align_x_exists || p->align_y_exists) 85 else if (p->align_x_exists || p->align_y_exists)
86 { 86 {
87 double x, y; 87 double x, y;
88 elm_gengrid_align_get(obj, &x, &y); 88 elm_gengrid_align_get(obj, &x, &y);
89 if (p->align_x_exists) 89 if (p->align_x_exists)
90 elm_gengrid_align_set(obj, p->align_x, y); 90 elm_gengrid_align_set(obj, p->align_x, y);
91 else 91 else
92 elm_gengrid_align_set(obj, x, p->align_y); 92 elm_gengrid_align_set(obj, x, p->align_y);
93 } 93 }
94 if (p->horizontal_exists) 94 if (p->horizontal_exists)
95 { 95 {
@@ -193,20 +193,20 @@ external_gengrid_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E
193 } 193 }
194 } 194 }
195 else if (!strcmp(param->name, "align x") 195 else if (!strcmp(param->name, "align x")
196 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 196 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
197 { 197 {
198 double x, y; 198 double x, y;
199 elm_gengrid_align_get(obj, &x, &y); 199 elm_gengrid_align_get(obj, &x, &y);
200 elm_gengrid_align_set(obj, param->d, y); 200 elm_gengrid_align_set(obj, param->d, y);
201 return EINA_TRUE; 201 return EINA_TRUE;
202 } 202 }
203 else if (!strcmp(param->name, "align y") 203 else if (!strcmp(param->name, "align y")
204 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 204 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
205 { 205 {
206 double x, y; 206 double x, y;
207 elm_gengrid_align_get(obj, &x, &y); 207 elm_gengrid_align_get(obj, &x, &y);
208 elm_gengrid_align_set(obj, x, param->d); 208 elm_gengrid_align_set(obj, x, param->d);
209 return EINA_TRUE; 209 return EINA_TRUE;
210 } 210 }
211 ERR("unknown parameter '%s' of type '%s'", 211 ERR("unknown parameter '%s' of type '%s'",
212 param->name, edje_external_param_type_str(param->type)); 212 param->name, edje_external_param_type_str(param->type));
@@ -310,20 +310,20 @@ external_gengrid_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E
310 } 310 }
311 } 311 }
312 else if (!strcmp(param->name, "align x") 312 else if (!strcmp(param->name, "align x")
313 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 313 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
314 { 314 {
315 double x, y; 315 double x, y;
316 elm_gengrid_align_get(obj, &x, &y); 316 elm_gengrid_align_get(obj, &x, &y);
317 param->d = x; 317 param->d = x;
318 return EINA_TRUE; 318 return EINA_TRUE;
319 } 319 }
320 else if (!strcmp(param->name, "align y") 320 else if (!strcmp(param->name, "align y")
321 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 321 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
322 { 322 {
323 double x, y; 323 double x, y;
324 elm_gengrid_align_get(obj, &x, &y); 324 elm_gengrid_align_get(obj, &x, &y);
325 param->d = y; 325 param->d = y;
326 return EINA_TRUE; 326 return EINA_TRUE;
327 } 327 }
328 ERR("unknown parameter '%s' of type '%s'", 328 ERR("unknown parameter '%s' of type '%s'",
329 param->name, edje_external_param_type_str(param->type)); 329 param->name, edje_external_param_type_str(param->type));
@@ -394,16 +394,16 @@ external_gengrid_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__
394 mem->horizontal = !!param->i; 394 mem->horizontal = !!param->i;
395 mem->horizontal_exists = EINA_TRUE; 395 mem->horizontal_exists = EINA_TRUE;
396 } 396 }
397 else if (!strcmp(param->name, "align x")) 397 else if (!strcmp(param->name, "align x"))
398 { 398 {
399 mem->align_x = param->d; 399 mem->align_x = param->d;
400 mem->align_x_exists = EINA_TRUE; 400 mem->align_x_exists = EINA_TRUE;
401 } 401 }
402 else if (!strcmp(param->name, "align y")) 402 else if (!strcmp(param->name, "align y"))
403 { 403 {
404 mem->align_y = param->d; 404 mem->align_y = param->d;
405 mem->align_y_exists = EINA_TRUE; 405 mem->align_y_exists = EINA_TRUE;
406 } 406 }
407 } 407 }
408 408
409 return mem; 409 return mem;