summaryrefslogtreecommitdiff
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
parent123bcbfc0648025962225afacfb0eb1a96d953d7 (diff)
elm/edje_externals: fix formatting
SVN revision: 68620
-rw-r--r--legacy/elementary/src/edje_externals/elm.c62
-rw-r--r--legacy/elementary/src/edje_externals/elm_anchorview.c32
-rw-r--r--legacy/elementary/src/edje_externals/elm_calendar.c70
-rw-r--r--legacy/elementary/src/edje_externals/elm_entry.c6
-rw-r--r--legacy/elementary/src/edje_externals/elm_gengrid.c70
-rw-r--r--legacy/elementary/src/edje_externals/elm_icon.c170
-rw-r--r--legacy/elementary/src/edje_externals/elm_segment_control.c6
7 files changed, 208 insertions, 208 deletions
diff --git a/legacy/elementary/src/edje_externals/elm.c b/legacy/elementary/src/edje_externals/elm.c
index 4f9a8f3..59d41e8 100644
--- a/legacy/elementary/src/edje_externals/elm.c
+++ b/legacy/elementary/src/edje_externals/elm.c
@@ -38,37 +38,37 @@ _external_obj_del(void *data __UNUSED__, Evas *evas __UNUSED__, Evas_Object *obj
38void 38void
39external_signal(void *data __UNUSED__, Evas_Object *obj, const char *sig, const char *source) 39external_signal(void *data __UNUSED__, Evas_Object *obj, const char *sig, const char *source)
40{ 40{
41 char *_signal = strdup(sig); 41 char *_signal = strdup(sig);
42 char *p = _signal; 42 char *p = _signal;
43 Evas_Object *content; 43 Evas_Object *content;
44 44
45 while((*p!='\0') && (*p!=']')) 45 while((*p!='\0') && (*p!=']'))
46 p++; 46 p++;
47 47
48 48
49 if((*p=='\0') || (*(p+1)!=':')) 49 if((*p=='\0') || (*(p+1)!=':'))
50 { 50 {
51 ERR("Invalid External Signal received: '%s' '%s'\n", sig, source); 51 ERR("Invalid External Signal received: '%s' '%s'\n", sig, source);
52 free(_signal); 52 free(_signal);
53 return ; 53 return ;
54 } 54 }
55 55
56 *p = '\0'; 56 *p = '\0';
57 p+=2; //jump ']' and ':' 57 p+=2; //jump ']' and ':'
58 58
59 Edje_External_Type *type = evas_object_data_get(obj, "Edje_External_Type"); 59 Edje_External_Type *type = evas_object_data_get(obj, "Edje_External_Type");
60 if (!type->content_get) 60 if (!type->content_get)
61 { 61 {
62 ERR("external type '%s' from module '%s' does not provide content_get()", 62 ERR("external type '%s' from module '%s' does not provide content_get()",
63 type->module_name, type->module); 63 type->module_name, type->module);
64 free(_signal); 64 free(_signal);
65 return ; 65 return ;
66 } 66 }
67 67
68 content = type->content_get(type->data, obj, _signal); 68 content = type->content_get(type->data, obj, _signal);
69 free(_signal); 69 free(_signal);
70 if(content) 70 if(content)
71 edje_object_signal_emit(content, sig + (p - _signal), source); 71 edje_object_signal_emit(content, sig + (p - _signal), source);
72} 72}
73 73
74const char * 74const char *
diff --git a/legacy/elementary/src/edje_externals/elm_anchorview.c b/legacy/elementary/src/edje_externals/elm_anchorview.c
index eb5936d..33c7c6a 100644
--- a/legacy/elementary/src/edje_externals/elm_anchorview.c
+++ b/legacy/elementary/src/edje_externals/elm_anchorview.c
@@ -17,7 +17,7 @@ external_anchorview_state_set(void *data __UNUSED__, Evas_Object *obj, const voi
17 17
18 if (p->text) 18 if (p->text)
19 { 19 {
20 elm_object_text_set(obj, p->text); 20 elm_object_text_set(obj, p->text);
21 } 21 }
22} 22}
23 23
@@ -26,11 +26,11 @@ external_anchorview_param_set(void *data __UNUSED__, Evas_Object *obj, const Edj
26{ 26{
27 if (!strcmp(param->name, "text")) 27 if (!strcmp(param->name, "text"))
28 { 28 {
29 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 29 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
30 { 30 {
31 elm_object_text_set(obj, param->s); 31 elm_object_text_set(obj, param->s);
32 return EINA_TRUE; 32 return EINA_TRUE;
33 } 33 }
34 } 34 }
35 35
36 ERR("unknown parameter '%s' of type '%s'", 36 ERR("unknown parameter '%s' of type '%s'",
@@ -44,11 +44,11 @@ external_anchorview_param_get(void *data __UNUSED__, const Evas_Object *obj, Edj
44{ 44{
45 if (!strcmp(param->name, "text")) 45 if (!strcmp(param->name, "text"))
46 { 46 {
47 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 47 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
48 { 48 {
49 param->s = elm_object_text_get(obj); 49 param->s = elm_object_text_get(obj);
50 return EINA_TRUE; 50 return EINA_TRUE;
51 } 51 }
52 } 52 }
53 53
54 ERR("unknown parameter '%s' of type '%s'", 54 ERR("unknown parameter '%s' of type '%s'",
@@ -70,18 +70,18 @@ external_anchorview_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSE
70 70
71 EINA_LIST_FOREACH(params, l, param) 71 EINA_LIST_FOREACH(params, l, param)
72 { 72 {
73 if (!strcmp(param->name, "text")) 73 if (!strcmp(param->name, "text"))
74 mem->text = eina_stringshare_add(param->s); 74 mem->text = eina_stringshare_add(param->s);
75 } 75 }
76 76
77 return mem; 77 return mem;
78} 78}
79 79
80static Evas_Object *external_anchorview_content_get(void *data __UNUSED__, 80static Evas_Object *external_anchorview_content_get(void *data __UNUSED__,
81 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__) 81 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
82{ 82{
83 ERR("No content."); 83 ERR("No content.");
84 return NULL; 84 return NULL;
85} 85}
86 86
87static void 87static void
diff --git a/legacy/elementary/src/edje_externals/elm_calendar.c b/legacy/elementary/src/edje_externals/elm_calendar.c
index b0bed77..8eb791a 100644
--- a/legacy/elementary/src/edje_externals/elm_calendar.c
+++ b/legacy/elementary/src/edje_externals/elm_calendar.c
@@ -43,29 +43,29 @@ external_calendar_param_set(void *data __UNUSED__, Evas_Object *obj,
43 43
44 if (!strcmp(param->name, "year_min")) 44 if (!strcmp(param->name, "year_min"))
45 { 45 {
46 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT) 46 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
47 { 47 {
48 elm_calendar_min_max_year_get(obj, NULL, &max); 48 elm_calendar_min_max_year_get(obj, NULL, &max);
49 elm_calendar_min_max_year_set(obj, param->i, max); 49 elm_calendar_min_max_year_set(obj, param->i, max);
50 return EINA_TRUE; 50 return EINA_TRUE;
51 } 51 }
52 } 52 }
53 else if (!strcmp(param->name, "year_max")) 53 else if (!strcmp(param->name, "year_max"))
54 { 54 {
55 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT) 55 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
56 { 56 {
57 elm_calendar_min_max_year_get(obj, &min, NULL); 57 elm_calendar_min_max_year_get(obj, &min, NULL);
58 elm_calendar_min_max_year_set(obj, min,param->i); 58 elm_calendar_min_max_year_set(obj, min,param->i);
59 return EINA_TRUE; 59 return EINA_TRUE;
60 } 60 }
61 } 61 }
62 else if (!strcmp(param->name, "sel_enable")) 62 else if (!strcmp(param->name, "sel_enable"))
63 { 63 {
64 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 64 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
65 { 65 {
66 elm_calendar_day_selection_disabled_set(obj,!param->i ); 66 elm_calendar_day_selection_disabled_set(obj,!param->i );
67 return EINA_TRUE; 67 return EINA_TRUE;
68 } 68 }
69 } 69 }
70 70
71 ERR("unknown parameter '%s' of type '%s'", 71 ERR("unknown parameter '%s' of type '%s'",
@@ -82,27 +82,27 @@ external_calendar_param_get(void *data __UNUSED__, const Evas_Object *obj,
82 82
83 if (!strcmp(param->name, "year_min")) 83 if (!strcmp(param->name, "year_min"))
84 { 84 {
85 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT) 85 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
86 { 86 {
87 elm_calendar_min_max_year_get(obj, &(param->i) ,&max); 87 elm_calendar_min_max_year_get(obj, &(param->i) ,&max);
88 return EINA_TRUE; 88 return EINA_TRUE;
89 } 89 }
90 } 90 }
91 else if (!strcmp(param->name, "year_max")) 91 else if (!strcmp(param->name, "year_max"))
92 { 92 {
93 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT) 93 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
94 { 94 {
95 elm_calendar_min_max_year_get(obj, &min,&(param->i)); 95 elm_calendar_min_max_year_get(obj, &min,&(param->i));
96 return EINA_TRUE; 96 return EINA_TRUE;
97 } 97 }
98 } 98 }
99 else if (!strcmp(param->name, "sel_enable")) 99 else if (!strcmp(param->name, "sel_enable"))
100 { 100 {
101 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 101 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
102 { 102 {
103 param->i = !elm_calendar_day_selection_disabled_get(obj); 103 param->i = !elm_calendar_day_selection_disabled_get(obj);
104 return EINA_TRUE; 104 return EINA_TRUE;
105 } 105 }
106 } 106 }
107 107
108 ERR("unknown parameter '%s' of type '%s'", 108 ERR("unknown parameter '%s' of type '%s'",
@@ -127,15 +127,15 @@ external_calendar_params_parse(void *data __UNUSED__,
127 EINA_LIST_FOREACH(params, l, param) 127 EINA_LIST_FOREACH(params, l, param)
128 { 128 {
129 if (!strcmp(param->name, "year_min")) 129 if (!strcmp(param->name, "year_min"))
130 mem->year_min = param->i; 130 mem->year_min = param->i;
131 131
132 else if(!strcmp(param->name, "year_max")) 132 else if(!strcmp(param->name, "year_max"))
133 mem->year_max = param->i; 133 mem->year_max = param->i;
134 134
135 else if (!strcmp(param->name, "sel_enable")) 135 else if (!strcmp(param->name, "sel_enable"))
136 { 136 {
137 mem->sel_enable = param->i; 137 mem->sel_enable = param->i;
138 mem->sel_exists = EINA_TRUE; 138 mem->sel_exists = EINA_TRUE;
139 } 139 }
140 } 140 }
141 141
diff --git a/legacy/elementary/src/edje_externals/elm_entry.c b/legacy/elementary/src/edje_externals/elm_entry.c
index 6ab4936..8df297d 100644
--- a/legacy/elementary/src/edje_externals/elm_entry.c
+++ b/legacy/elementary/src/edje_externals/elm_entry.c
@@ -338,10 +338,10 @@ external_entry_params_parse(void *data __UNUSED__, Evas_Object *obj, const Eina_
338} 338}
339 339
340static Evas_Object *external_entry_content_get(void *data __UNUSED__, 340static Evas_Object *external_entry_content_get(void *data __UNUSED__,
341 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__) 341 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
342{ 342{
343 ERR("No content."); 343 ERR("No content.");
344 return NULL; 344 return NULL;
345} 345}
346 346
347static void 347static void
diff --git a/legacy/elementary/src/edje_externals/elm_gengrid.c b/legacy/elementary/src/edje_externals/elm_gengrid.c
index 6c3bf07..56a2221 100644
--- a/legacy/elementary/src/edje_externals/elm_gengrid.c
+++ b/legacy/elementary/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;
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 {
diff --git a/legacy/elementary/src/edje_externals/elm_segment_control.c b/legacy/elementary/src/edje_externals/elm_segment_control.c
index 27cecdf..953feb5 100644
--- a/legacy/elementary/src/edje_externals/elm_segment_control.c
+++ b/legacy/elementary/src/edje_externals/elm_segment_control.c
@@ -53,10 +53,10 @@ external_segment_control_params_parse(void *data __UNUSED__, Evas_Object *obj __
53} 53}
54 54
55static Evas_Object *external_segment_control_content_get(void *data __UNUSED__, 55static Evas_Object *external_segment_control_content_get(void *data __UNUSED__,
56 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__) 56 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
57{ 57{
58 ERR("No content."); 58 ERR("No content.");
59 return NULL; 59 return NULL;
60} 60}
61 61
62static void 62static void