summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-29 11:09:45 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-29 11:09:45 +0000
commit8c17d99712d530f2532dcd0546b2a5b47cf02bc8 (patch)
tree73a1a5101e0a51becd115e27e257938367bd26f9 /legacy/elementary
parent4801d7f5c179a252773e983127a474afed311911 (diff)
elm: Fixed formatting. Added a space after 'if/while/for'
SVN revision: 69744
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/bin/test_box.c6
-rw-r--r--legacy/elementary/src/bin/test_bubble.c2
-rw-r--r--legacy/elementary/src/bin/test_calendar.c2
-rw-r--r--legacy/elementary/src/bin/test_clock.c2
-rw-r--r--legacy/elementary/src/bin/test_diskselector.c2
-rw-r--r--legacy/elementary/src/bin/test_entry.c4
-rw-r--r--legacy/elementary/src/bin/test_fileselector_button.c2
-rw-r--r--legacy/elementary/src/bin/test_fileselector_entry.c2
-rw-r--r--legacy/elementary/src/bin/test_gengrid.c2
-rw-r--r--legacy/elementary/src/bin/test_genlist.c2
-rw-r--r--legacy/elementary/src/bin/test_hoversel.c2
-rw-r--r--legacy/elementary/src/bin/test_index.c2
-rw-r--r--legacy/elementary/src/bin/test_list.c18
-rw-r--r--legacy/elementary/src/edje_externals/elm.c6
-rw-r--r--legacy/elementary/src/edje_externals/elm_calendar.c2
-rw-r--r--legacy/elementary/src/edje_externals/elm_entry.c4
-rw-r--r--legacy/elementary/src/edje_externals/elm_photocam.c2
-rw-r--r--legacy/elementary/src/examples/hoversel_example_01.c4
-rw-r--r--legacy/elementary/src/lib/elc_dayselector.c2
-rw-r--r--legacy/elementary/src/lib/elc_naviframe.c6
-rw-r--r--legacy/elementary/src/lib/elm_bubble.c8
-rw-r--r--legacy/elementary/src/lib/elm_cnp.c2
-rw-r--r--legacy/elementary/src/lib/elm_colorselector.c8
-rw-r--r--legacy/elementary/src/lib/elm_config.c4
-rw-r--r--legacy/elementary/src/lib/elm_datetime.c2
-rw-r--r--legacy/elementary/src/lib/elm_diskselector.c2
-rw-r--r--legacy/elementary/src/lib/elm_genlist.c2
-rw-r--r--legacy/elementary/src/lib/elm_gesture_layer.c14
-rw-r--r--legacy/elementary/src/lib/elm_map.c4
-rw-r--r--legacy/elementary/src/lib/elm_panes.c2
-rw-r--r--legacy/elementary/src/lib/elm_toolbar.c2
-rw-r--r--legacy/elementary/src/lib/elm_transit.c2
-rw-r--r--legacy/elementary/src/lib/elm_win.c2
33 files changed, 64 insertions, 64 deletions
diff --git a/legacy/elementary/src/bin/test_box.c b/legacy/elementary/src/bin/test_box.c
index 2ac3aafd1c..893fb6ea1b 100644
--- a/legacy/elementary/src/bin/test_box.c
+++ b/legacy/elementary/src/bin/test_box.c
@@ -39,7 +39,7 @@ static void
39set_api_state(api_data *api) 39set_api_state(api_data *api)
40{ 40{
41 const Eina_List *items = elm_box_children_get(api->box); 41 const Eina_List *items = elm_box_children_get(api->box);
42 if(!eina_list_count(items)) 42 if (!eina_list_count(items))
43 return; 43 return;
44 44
45 /* use elm_box_children_get() to get list of children */ 45 /* use elm_box_children_get() to get list of children */
@@ -51,7 +51,7 @@ set_api_state(api_data *api)
51 break; 51 break;
52 52
53 case BOX_PACK_BEFORE: 53 case BOX_PACK_BEFORE:
54 if(eina_list_count(items) > 1) 54 if (eina_list_count(items) > 1)
55 { /* Put last item before the one preceeding it */ 55 { /* Put last item before the one preceeding it */
56 elm_box_unpack(api->box, eina_list_data_get(eina_list_last(items))); 56 elm_box_unpack(api->box, eina_list_data_get(eina_list_last(items)));
57 elm_box_pack_before(api->box, 57 elm_box_pack_before(api->box,
@@ -61,7 +61,7 @@ set_api_state(api_data *api)
61 break; 61 break;
62 62
63 case BOX_PACK_AFTER: 63 case BOX_PACK_AFTER:
64 if(eina_list_count(items) > 1) 64 if (eina_list_count(items) > 1)
65 { /* Put item before last to last */ 65 { /* Put item before last to last */
66 elm_box_unpack(api->box, eina_list_nth(items, 66 elm_box_unpack(api->box, eina_list_nth(items,
67 eina_list_count(items)-2)); 67 eina_list_count(items)-2));
diff --git a/legacy/elementary/src/bin/test_bubble.c b/legacy/elementary/src/bin/test_bubble.c
index 57433dc963..42b50be547 100644
--- a/legacy/elementary/src/bin/test_bubble.c
+++ b/legacy/elementary/src/bin/test_bubble.c
@@ -32,7 +32,7 @@ static void
32set_api_state(api_data *api) 32set_api_state(api_data *api)
33{ 33{
34 const Eina_List *items = elm_box_children_get(api->box); 34 const Eina_List *items = elm_box_children_get(api->box);
35 if(!eina_list_count(items)) 35 if (!eina_list_count(items))
36 return; 36 return;
37 37
38 switch(api->state) 38 switch(api->state)
diff --git a/legacy/elementary/src/bin/test_calendar.c b/legacy/elementary/src/bin/test_calendar.c
index 045f49c58e..7126231418 100644
--- a/legacy/elementary/src/bin/test_calendar.c
+++ b/legacy/elementary/src/bin/test_calendar.c
@@ -26,7 +26,7 @@ set_api_state(api_data *api)
26{ 26{
27 const Eina_List *items = elm_box_children_get(api->box); 27 const Eina_List *items = elm_box_children_get(api->box);
28 static Elm_Calendar_Mark *m = NULL; 28 static Elm_Calendar_Mark *m = NULL;
29 if(!eina_list_count(items)) 29 if (!eina_list_count(items))
30 return; 30 return;
31 31
32 switch(api->state) 32 switch(api->state)
diff --git a/legacy/elementary/src/bin/test_clock.c b/legacy/elementary/src/bin/test_clock.c
index 6940242d65..8f1bba0e4a 100644
--- a/legacy/elementary/src/bin/test_clock.c
+++ b/legacy/elementary/src/bin/test_clock.c
@@ -29,7 +29,7 @@ set_api_state(api_data *api)
29{ 29{
30 const Eina_List *items = elm_box_children_get(api->box); 30 const Eina_List *items = elm_box_children_get(api->box);
31 Evas_Object *ck = eina_list_nth(items, 0); 31 Evas_Object *ck = eina_list_nth(items, 0);
32 if(!eina_list_count(items)) 32 if (!eina_list_count(items))
33 return; 33 return;
34 34
35 /* use elm_box_children_get() to get list of children */ 35 /* use elm_box_children_get() to get list of children */
diff --git a/legacy/elementary/src/bin/test_diskselector.c b/legacy/elementary/src/bin/test_diskselector.c
index 621abde12e..d983183486 100644
--- a/legacy/elementary/src/bin/test_diskselector.c
+++ b/legacy/elementary/src/bin/test_diskselector.c
@@ -36,7 +36,7 @@ static void
36set_api_state(api_data *api) 36set_api_state(api_data *api)
37{ 37{
38 const Eina_List *disks = elm_box_children_get(api->box); 38 const Eina_List *disks = elm_box_children_get(api->box);
39 if(!eina_list_count(disks)) 39 if (!eina_list_count(disks))
40 return; 40 return;
41 41
42 switch(api->state) 42 switch(api->state)
diff --git a/legacy/elementary/src/bin/test_entry.c b/legacy/elementary/src/bin/test_entry.c
index 7ca9febdd6..0c31d96dae 100644
--- a/legacy/elementary/src/bin/test_entry.c
+++ b/legacy/elementary/src/bin/test_entry.c
@@ -1743,7 +1743,7 @@ item_provider(void *images __UNUSED__, Evas_Object *en, const char *item)
1743 Evas_Object *o = NULL;; 1743 Evas_Object *o = NULL;;
1744 char buf[1024]; 1744 char buf[1024];
1745 1745
1746 if(!strcmp(item, "itemprovider")) 1746 if (!strcmp(item, "itemprovider"))
1747 { 1747 {
1748 snprintf(buf, sizeof(buf), "%s/images/icon_00.png", 1748 snprintf(buf, sizeof(buf), "%s/images/icon_00.png",
1749 elm_app_data_dir_get()); 1749 elm_app_data_dir_get());
@@ -1760,7 +1760,7 @@ prepend_item_provider(void *images __UNUSED__, Evas_Object *en, const char *item
1760 Evas_Object *o = NULL;; 1760 Evas_Object *o = NULL;;
1761 char buf[1024]; 1761 char buf[1024];
1762 1762
1763 if(!strcmp(item, "itemprovider")) 1763 if (!strcmp(item, "itemprovider"))
1764 { 1764 {
1765 snprintf(buf, sizeof(buf), "%s/images/icon_10.png", 1765 snprintf(buf, sizeof(buf), "%s/images/icon_10.png",
1766 elm_app_data_dir_get()); 1766 elm_app_data_dir_get());
diff --git a/legacy/elementary/src/bin/test_fileselector_button.c b/legacy/elementary/src/bin/test_fileselector_button.c
index ed565bd52c..5f488966cd 100644
--- a/legacy/elementary/src/bin/test_fileselector_button.c
+++ b/legacy/elementary/src/bin/test_fileselector_button.c
@@ -24,7 +24,7 @@ static void
24set_api_state(api_data *api) 24set_api_state(api_data *api)
25{ 25{
26 const Eina_List *items = elm_box_children_get(api->box); 26 const Eina_List *items = elm_box_children_get(api->box);
27 if(!eina_list_count(items)) 27 if (!eina_list_count(items))
28 return; 28 return;
29 29
30 /* Get first item of list of vbox children */ 30 /* Get first item of list of vbox children */
diff --git a/legacy/elementary/src/bin/test_fileselector_entry.c b/legacy/elementary/src/bin/test_fileselector_entry.c
index f86b2d1bca..e3afca64de 100644
--- a/legacy/elementary/src/bin/test_fileselector_entry.c
+++ b/legacy/elementary/src/bin/test_fileselector_entry.c
@@ -24,7 +24,7 @@ static void
24set_api_state(api_data *api) 24set_api_state(api_data *api)
25{ 25{
26 const Eina_List *items = elm_box_children_get(api->box); 26 const Eina_List *items = elm_box_children_get(api->box);
27 if(!eina_list_count(items)) 27 if (!eina_list_count(items))
28 return; 28 return;
29 29
30 /* Get first item of list of vbox children */ 30 /* Get first item of list of vbox children */
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index c7a817e2a0..129f2641e1 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -412,7 +412,7 @@ cursor_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
412 for ((item = elm_gengrid_first_item_get(grid)); item; 412 for ((item = elm_gengrid_first_item_get(grid)); item;
413 (item = elm_gengrid_item_next_get(item))) 413 (item = elm_gengrid_item_next_get(item)))
414 { 414 {
415 if(!elm_check_state_get(obj)) 415 if (!elm_check_state_get(obj))
416 { 416 {
417 elm_gengrid_item_cursor_unset(item); 417 elm_gengrid_item_cursor_unset(item);
418 continue; 418 continue;
diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c
index 24681505f6..1c64537d68 100644
--- a/legacy/elementary/src/bin/test_genlist.c
+++ b/legacy/elementary/src/bin/test_genlist.c
@@ -30,7 +30,7 @@ static void
30set_api_state(api_data *api) 30set_api_state(api_data *api)
31{ 31{
32 const Eina_List *items = elm_box_children_get(api->box); 32 const Eina_List *items = elm_box_children_get(api->box);
33 if(!eina_list_count(items)) 33 if (!eina_list_count(items))
34 return; 34 return;
35 35
36 Evas_Object *gl = eina_list_nth(items, 0); /* Genlist is the first item */ 36 Evas_Object *gl = eina_list_nth(items, 0); /* Genlist is the first item */
diff --git a/legacy/elementary/src/bin/test_hoversel.c b/legacy/elementary/src/bin/test_hoversel.c
index 023663bcad..1c45aa9145 100644
--- a/legacy/elementary/src/bin/test_hoversel.c
+++ b/legacy/elementary/src/bin/test_hoversel.c
@@ -27,7 +27,7 @@ static void
27set_api_state(api_data *api) 27set_api_state(api_data *api)
28{ 28{
29 const Eina_List *items = elm_box_children_get(api->box); 29 const Eina_List *items = elm_box_children_get(api->box);
30 if(!eina_list_count(items)) 30 if (!eina_list_count(items))
31 return; 31 return;
32 32
33 /* use elm_box_children_get() to get list of children */ 33 /* use elm_box_children_get() to get list of children */
diff --git a/legacy/elementary/src/bin/test_index.c b/legacy/elementary/src/bin/test_index.c
index be43daba51..d02909639f 100644
--- a/legacy/elementary/src/bin/test_index.c
+++ b/legacy/elementary/src/bin/test_index.c
@@ -68,7 +68,7 @@ set_api_state(api_data *api)
68 case INDEX_ITEM_FIND: 68 case INDEX_ITEM_FIND:
69 { 69 {
70 Elm_Object_Item *i = elm_index_item_find(d->id, d->item); 70 Elm_Object_Item *i = elm_index_item_find(d->id, d->item);
71 if(i) 71 if (i)
72 { 72 {
73 printf("Item Find - Found Item.\n"); 73 printf("Item Find - Found Item.\n");
74 elm_object_item_del(i); 74 elm_object_item_del(i);
diff --git a/legacy/elementary/src/bin/test_list.c b/legacy/elementary/src/bin/test_list.c
index 7ce4c7fcf1..832df3cd4c 100644
--- a/legacy/elementary/src/bin/test_list.c
+++ b/legacy/elementary/src/bin/test_list.c
@@ -79,7 +79,7 @@ Scroll to end
79 case ITEM_INSERT_BEFORE: /* 1 */ 79 case ITEM_INSERT_BEFORE: /* 1 */
80 { 80 {
81 const Eina_List *items = elm_list_items_get(li); 81 const Eina_List *items = elm_list_items_get(li);
82 if(eina_list_count(items)) 82 if (eina_list_count(items))
83 { 83 {
84 elm_list_item_insert_before(li, 84 elm_list_item_insert_before(li,
85 eina_list_nth(items, eina_list_count(items)-1), 85 eina_list_nth(items, eina_list_count(items)-1),
@@ -93,7 +93,7 @@ Scroll to end
93 case ITEM_INSERT_AFTER: /* 2 */ 93 case ITEM_INSERT_AFTER: /* 2 */
94 { 94 {
95 const Eina_List *items = elm_list_items_get(li); 95 const Eina_List *items = elm_list_items_get(li);
96 if(eina_list_count(items)) 96 if (eina_list_count(items))
97 { 97 {
98 elm_list_item_insert_after(li, 98 elm_list_item_insert_after(li,
99 eina_list_nth(items, eina_list_count(items)-2), 99 eina_list_nth(items, eina_list_count(items)-2),
@@ -107,7 +107,7 @@ Scroll to end
107 case ITEM_SEPARATOR_SET: /* 3 */ 107 case ITEM_SEPARATOR_SET: /* 3 */
108 { 108 {
109 const Eina_List *items = elm_list_items_get(li); 109 const Eina_List *items = elm_list_items_get(li);
110 if(eina_list_count(items)) 110 if (eina_list_count(items))
111 { 111 {
112 elm_list_item_separator_set(eina_list_nth(items, eina_list_count(items)-3), EINA_TRUE); 112 elm_list_item_separator_set(eina_list_nth(items, eina_list_count(items)-3), EINA_TRUE);
113 elm_list_item_bring_in(eina_list_nth(items, eina_list_count(items)-3)); 113 elm_list_item_bring_in(eina_list_nth(items, eina_list_count(items)-3));
@@ -119,7 +119,7 @@ Scroll to end
119 case LIST_ITEM_DEL: /* 4 */ 119 case LIST_ITEM_DEL: /* 4 */
120 { 120 {
121 const Eina_List *items = elm_list_items_get(li); 121 const Eina_List *items = elm_list_items_get(li);
122 if(eina_list_count(items)) 122 if (eina_list_count(items))
123 { 123 {
124 elm_object_item_del(eina_list_data_get(eina_list_last(items))); 124 elm_object_item_del(eina_list_data_get(eina_list_last(items)));
125 } 125 }
@@ -138,7 +138,7 @@ Scroll to end
138 case TOOLTIP_TEXT_SET: /* 7 */ 138 case TOOLTIP_TEXT_SET: /* 7 */
139 { 139 {
140 const Eina_List *items = elm_list_items_get(li); 140 const Eina_List *items = elm_list_items_get(li);
141 if(eina_list_count(items)) 141 if (eina_list_count(items))
142 { 142 {
143 elm_object_item_tooltip_text_set(eina_list_data_get(eina_list_last(items)), "Tooltip set from API"); 143 elm_object_item_tooltip_text_set(eina_list_data_get(eina_list_last(items)), "Tooltip set from API");
144 } 144 }
@@ -149,7 +149,7 @@ Scroll to end
149 case TOOLTIP_UNSET: /* 8 */ 149 case TOOLTIP_UNSET: /* 8 */
150 { 150 {
151 const Eina_List *items = elm_list_items_get(li); 151 const Eina_List *items = elm_list_items_get(li);
152 if(eina_list_count(items)) 152 if (eina_list_count(items))
153 { 153 {
154 elm_object_item_tooltip_unset(eina_list_data_get(eina_list_last(items))); 154 elm_object_item_tooltip_unset(eina_list_data_get(eina_list_last(items)));
155 } 155 }
@@ -159,7 +159,7 @@ Scroll to end
159 case ITEM_CURSOR_SET: /* 9 */ 159 case ITEM_CURSOR_SET: /* 9 */
160 { 160 {
161 const Eina_List *items = elm_list_items_get(li); 161 const Eina_List *items = elm_list_items_get(li);
162 if(eina_list_count(items)) 162 if (eina_list_count(items))
163 { 163 {
164 elm_object_item_cursor_set(eina_list_data_get(eina_list_last(items)), ELM_CURSOR_HAND2); 164 elm_object_item_cursor_set(eina_list_data_get(eina_list_last(items)), ELM_CURSOR_HAND2);
165 } 165 }
@@ -169,7 +169,7 @@ Scroll to end
169 case ITEM_CURSOR_STYLE_SET: /* 10 */ 169 case ITEM_CURSOR_STYLE_SET: /* 10 */
170 { 170 {
171 const Eina_List *items = elm_list_items_get(li); 171 const Eina_List *items = elm_list_items_get(li);
172 if(eina_list_count(items)) 172 if (eina_list_count(items))
173 { 173 {
174 elm_object_item_cursor_style_set(eina_list_data_get(eina_list_last(items)), "transparent"); 174 elm_object_item_cursor_style_set(eina_list_data_get(eina_list_last(items)), "transparent");
175 } 175 }
@@ -179,7 +179,7 @@ Scroll to end
179 case DISABLED_SET: /* 11 */ 179 case DISABLED_SET: /* 11 */
180 { 180 {
181 const Eina_List *items = elm_list_items_get(li); 181 const Eina_List *items = elm_list_items_get(li);
182 if(eina_list_count(items)) 182 if (eina_list_count(items))
183 { 183 {
184 elm_object_item_disabled_set(eina_list_data_get(eina_list_last(items)), EINA_TRUE); 184 elm_object_item_disabled_set(eina_list_data_get(eina_list_last(items)), EINA_TRUE);
185 } 185 }
diff --git a/legacy/elementary/src/edje_externals/elm.c b/legacy/elementary/src/edje_externals/elm.c
index 59d41e890b..ced69b80e0 100644
--- a/legacy/elementary/src/edje_externals/elm.c
+++ b/legacy/elementary/src/edje_externals/elm.c
@@ -42,11 +42,11 @@ external_signal(void *data __UNUSED__, Evas_Object *obj, const char *sig, const
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);
@@ -67,7 +67,7 @@ external_signal(void *data __UNUSED__, Evas_Object *obj, const char *sig, const
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
diff --git a/legacy/elementary/src/edje_externals/elm_calendar.c b/legacy/elementary/src/edje_externals/elm_calendar.c
index 8eb791aaad..fd5c3eeb94 100644
--- a/legacy/elementary/src/edje_externals/elm_calendar.c
+++ b/legacy/elementary/src/edje_externals/elm_calendar.c
@@ -129,7 +129,7 @@ external_calendar_params_parse(void *data __UNUSED__,
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"))
diff --git a/legacy/elementary/src/edje_externals/elm_entry.c b/legacy/elementary/src/edje_externals/elm_entry.c
index 8df297d975..910746fcd0 100644
--- a/legacy/elementary/src/edje_externals/elm_entry.c
+++ b/legacy/elementary/src/edje_externals/elm_entry.c
@@ -122,7 +122,7 @@ external_entry_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Ext
122 } 122 }
123 else if (!strcmp(param->name, "single line")) 123 else if (!strcmp(param->name, "single line"))
124 { 124 {
125 if(param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 125 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
126 { 126 {
127 elm_entry_single_line_set(obj, param->i); 127 elm_entry_single_line_set(obj, param->i);
128 return EINA_TRUE; 128 return EINA_TRUE;
@@ -130,7 +130,7 @@ external_entry_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Ext
130 } 130 }
131 else if (!strcmp(param->name, "password")) 131 else if (!strcmp(param->name, "password"))
132 { 132 {
133 if(param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 133 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
134 { 134 {
135 elm_entry_password_set(obj, param->i); 135 elm_entry_password_set(obj, param->i);
136 return EINA_TRUE; 136 return EINA_TRUE;
diff --git a/legacy/elementary/src/edje_externals/elm_photocam.c b/legacy/elementary/src/edje_externals/elm_photocam.c
index 0ab968e351..b4711c7e37 100644
--- a/legacy/elementary/src/edje_externals/elm_photocam.c
+++ b/legacy/elementary/src/edje_externals/elm_photocam.c
@@ -129,7 +129,7 @@ external_photocam_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_
129 return EINA_TRUE; 129 return EINA_TRUE;
130 } 130 }
131 } 131 }
132 else if(!strcmp(param->name, "paused")) 132 else if (!strcmp(param->name, "paused"))
133 { 133 {
134 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 134 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
135 { 135 {
diff --git a/legacy/elementary/src/examples/hoversel_example_01.c b/legacy/elementary/src/examples/hoversel_example_01.c
index 540e79d785..412bf43f18 100644
--- a/legacy/elementary/src/examples/hoversel_example_01.c
+++ b/legacy/elementary/src/examples/hoversel_example_01.c
@@ -71,14 +71,14 @@ _print_items(void *data, Evas_Object *obj, void *event_info)
71static void 71static void
72_rm_items(void *data, Evas_Object *obj, void *event_info) 72_rm_items(void *data, Evas_Object *obj, void *event_info)
73{ 73{
74 if(!elm_hoversel_expanded_get(obj)) 74 if (!elm_hoversel_expanded_get(obj))
75 elm_hoversel_clear(obj); 75 elm_hoversel_clear(obj);
76} 76}
77 77
78static void 78static void
79_sel(void *data, Evas_Object *obj, void *event_info) 79_sel(void *data, Evas_Object *obj, void *event_info)
80{ 80{
81 if(!elm_hoversel_expanded_get(obj) && event_info != data) 81 if (!elm_hoversel_expanded_get(obj) && event_info != data)
82 elm_object_item_del(event_info); 82 elm_object_item_del(event_info);
83} 83}
84 84
diff --git a/legacy/elementary/src/lib/elc_dayselector.c b/legacy/elementary/src/lib/elc_dayselector.c
index 57e670902e..681eb6f15a 100644
--- a/legacy/elementary/src/lib/elc_dayselector.c
+++ b/legacy/elementary/src/lib/elc_dayselector.c
@@ -289,7 +289,7 @@ _content_set_hook(Evas_Object *obj, const char *item, Evas_Object *content)
289 Widget_Data *wd = elm_widget_data_get(obj); 289 Widget_Data *wd = elm_widget_data_get(obj);
290 if (!wd || !content) return; 290 if (!wd || !content) return;
291 if (item && !strcmp(item, "default")) return; 291 if (item && !strcmp(item, "default")) return;
292 if(strcmp(elm_object_widget_type_get(content), "check")) return; 292 if (strcmp(elm_object_widget_type_get(content), "check")) return;
293 293
294 EINA_LIST_FOREACH(wd->items, l, it) 294 EINA_LIST_FOREACH(wd->items, l, it)
295 { 295 {
diff --git a/legacy/elementary/src/lib/elc_naviframe.c b/legacy/elementary/src/lib/elc_naviframe.c
index cc9767e0e0..27ae6d0877 100644
--- a/legacy/elementary/src/lib/elc_naviframe.c
+++ b/legacy/elementary/src/lib/elc_naviframe.c
@@ -240,7 +240,7 @@ _item_text_set_hook(Elm_Object_Item *it,
240 240
241 if (!part || !strcmp(part, "default")) 241 if (!part || !strcmp(part, "default"))
242 snprintf(buf, sizeof(buf), "elm.text.title"); 242 snprintf(buf, sizeof(buf), "elm.text.title");
243 else if(!strcmp("subtitle", part)) 243 else if (!strcmp("subtitle", part))
244 snprintf(buf, sizeof(buf), "elm.text.subtitle"); 244 snprintf(buf, sizeof(buf), "elm.text.subtitle");
245 else 245 else
246 snprintf(buf, sizeof(buf), "%s", part); 246 snprintf(buf, sizeof(buf), "%s", part);
@@ -284,7 +284,7 @@ _item_text_get_hook(const Elm_Object_Item *it, const char *part)
284 284
285 if (!part || !strcmp(part, "default")) 285 if (!part || !strcmp(part, "default"))
286 snprintf(buf, sizeof(buf), "elm.text.title"); 286 snprintf(buf, sizeof(buf), "elm.text.title");
287 else if(!strcmp("subtitle", part)) 287 else if (!strcmp("subtitle", part))
288 snprintf(buf, sizeof(buf), "elm.text.subtitle"); 288 snprintf(buf, sizeof(buf), "elm.text.subtitle");
289 else 289 else
290 snprintf(buf, sizeof(buf), "%s", part); 290 snprintf(buf, sizeof(buf), "%s", part);
@@ -1326,7 +1326,7 @@ elm_naviframe_item_pop_to(Elm_Object_Item *it)
1326 1326
1327 l = wd->stack->last->prev; 1327 l = wd->stack->last->prev;
1328 1328
1329 while(l) 1329 while (l)
1330 { 1330 {
1331 if (EINA_INLIST_CONTAINER_GET(l, Elm_Naviframe_Item) == 1331 if (EINA_INLIST_CONTAINER_GET(l, Elm_Naviframe_Item) ==
1332 ((Elm_Naviframe_Item *)it)) break; 1332 ((Elm_Naviframe_Item *)it)) break;
diff --git a/legacy/elementary/src/lib/elm_bubble.c b/legacy/elementary/src/lib/elm_bubble.c
index efca8447f7..3094c44d91 100644
--- a/legacy/elementary/src/lib/elm_bubble.c
+++ b/legacy/elementary/src/lib/elm_bubble.c
@@ -168,7 +168,7 @@ _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content)
168 168
169 if (!part || !strcmp(part, "default")) 169 if (!part || !strcmp(part, "default"))
170 _content_set(obj, content); 170 _content_set(obj, content);
171 else if(!strcmp(part, "icon")) 171 else if (!strcmp(part, "icon"))
172 _icon_set(obj, content); 172 _icon_set(obj, content);
173} 173}
174 174
@@ -180,7 +180,7 @@ _content_get_hook(const Evas_Object *obj, const char *part)
180 if (!wd) return NULL; 180 if (!wd) return NULL;
181 if (!part || !strcmp(part, "default")) 181 if (!part || !strcmp(part, "default"))
182 return wd->content; 182 return wd->content;
183 else if(!strcmp(part, "icon")) 183 else if (!strcmp(part, "icon"))
184 return wd->icon; 184 return wd->icon;
185 return NULL; 185 return NULL;
186} 186}
@@ -193,7 +193,7 @@ _content_unset_hook(Evas_Object *obj, const char *part)
193 if (!wd) return NULL; 193 if (!wd) return NULL;
194 if (!part || !strcmp(part, "default")) 194 if (!part || !strcmp(part, "default"))
195 return _content_unset(obj); 195 return _content_unset(obj);
196 else if(!strcmp(part, "icon")) 196 else if (!strcmp(part, "icon"))
197 return _icon_unset(obj); 197 return _icon_unset(obj);
198 return NULL; 198 return NULL;
199} 199}
@@ -353,7 +353,7 @@ elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos)
353 ELM_CHECK_WIDTYPE(obj, widtype); 353 ELM_CHECK_WIDTYPE(obj, widtype);
354 Widget_Data *wd = elm_widget_data_get(obj); 354 Widget_Data *wd = elm_widget_data_get(obj);
355 if (!wd) return; 355 if (!wd) return;
356 if(pos<ELM_BUBBLE_POS_TOP_LEFT || pos>ELM_BUBBLE_POS_BOTTOM_RIGHT) return; 356 if (pos<ELM_BUBBLE_POS_TOP_LEFT || pos>ELM_BUBBLE_POS_BOTTOM_RIGHT) return;
357 wd->pos = pos; 357 wd->pos = pos;
358 _theme_hook(obj); 358 _theme_hook(obj);
359} 359}
diff --git a/legacy/elementary/src/lib/elm_cnp.c b/legacy/elementary/src/lib/elm_cnp.c
index 50f3921861..6c9728a7b5 100644
--- a/legacy/elementary/src/lib/elm_cnp.c
+++ b/legacy/elementary/src/lib/elm_cnp.c
@@ -715,7 +715,7 @@ notify_handler_targets(Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notif
715 if ((j == CNP_ATOM_text_uri) || 715 if ((j == CNP_ATOM_text_uri) ||
716 (j == CNP_ATOM_text_urilist)) 716 (j == CNP_ATOM_text_urilist))
717 { 717 {
718 if(!is_uri_type_data(sel, notify)) continue; 718 if (!is_uri_type_data(sel, notify)) continue;
719 } 719 }
720 cnp_debug("Atom %s matches\n",atoms[j].name); 720 cnp_debug("Atom %s matches\n",atoms[j].name);
721 goto done; 721 goto done;
diff --git a/legacy/elementary/src/lib/elm_colorselector.c b/legacy/elementary/src/lib/elm_colorselector.c
index 382e7fdf11..24d16470d3 100644
--- a/legacy/elementary/src/lib/elm_colorselector.c
+++ b/legacy/elementary/src/lib/elm_colorselector.c
@@ -1189,10 +1189,10 @@ elm_colorselector_palette_item_color_get(const Elm_Object_Item *it, int *r __UNU
1189 item = (Elm_Color_Item *) it; 1189 item = (Elm_Color_Item *) it;
1190 if (item) 1190 if (item)
1191 { 1191 {
1192 if(r) *r = item->color->r; 1192 if (r) *r = item->color->r;
1193 if(g) *g = item->color->g; 1193 if (g) *g = item->color->g;
1194 if(b) *b = item->color->b; 1194 if (b) *b = item->color->b;
1195 if(a) *a = item->color->a; 1195 if (a) *a = item->color->a;
1196 } 1196 }
1197} 1197}
1198 1198
diff --git a/legacy/elementary/src/lib/elm_config.c b/legacy/elementary/src/lib/elm_config.c
index 9937383c30..29cdac3556 100644
--- a/legacy/elementary/src/lib/elm_config.c
+++ b/legacy/elementary/src/lib/elm_config.c
@@ -1234,8 +1234,8 @@ _config_update(void)
1234#define IFCFG(v) if ((_elm_config->config_version & 0xffff) < (v)) { 1234#define IFCFG(v) if ((_elm_config->config_version & 0xffff) < (v)) {
1235#define IFCFGELSE } else { 1235#define IFCFGELSE } else {
1236#define IFCFGEND } 1236#define IFCFGEND }
1237#define COPYVAL(x) do {_elm_config->x = tcfg->x; } while(0) 1237#define COPYVAL(x) do {_elm_config->x = tcfg->x; } while (0)
1238#define COPYPTR(x) do {_elm_config->x = tcfg->x; tcfg->x = NULL; } while(0) 1238#define COPYPTR(x) do {_elm_config->x = tcfg->x; tcfg->x = NULL; } while (0)
1239#define COPYSTR(x) COPYPTR(x) 1239#define COPYSTR(x) COPYPTR(x)
1240 1240
1241 /* we also need to update for property changes in the root window 1241 /* we also need to update for property changes in the root window
diff --git a/legacy/elementary/src/lib/elm_datetime.c b/legacy/elementary/src/lib/elm_datetime.c
index 4896ee1d78..1d76dc85d8 100644
--- a/legacy/elementary/src/lib/elm_datetime.c
+++ b/legacy/elementary/src/lib/elm_datetime.c
@@ -347,7 +347,7 @@ _max_days_get(int year, int month)
347 localtime_r(&t, &time1); 347 localtime_r(&t, &time1);
348 time1.tm_year = year; 348 time1.tm_year = year;
349 time1.tm_mon = month; 349 time1.tm_mon = month;
350 for(day = MIN_DAYS_IN_MONTH; day <= mapping[ELM_DATETIME_DATE].def_max; day++) 350 for (day = MIN_DAYS_IN_MONTH; day <= mapping[ELM_DATETIME_DATE].def_max; day++)
351 { 351 {
352 time1.tm_mday = day; 352 time1.tm_mday = day;
353 mktime(&time1); 353 mktime(&time1);
diff --git a/legacy/elementary/src/lib/elm_diskselector.c b/legacy/elementary/src/lib/elm_diskselector.c
index 3c4da2ea47..21b1b62805 100644
--- a/legacy/elementary/src/lib/elm_diskselector.c
+++ b/legacy/elementary/src/lib/elm_diskselector.c
@@ -966,7 +966,7 @@ _check_identical_item(Elm_Diskselector_Item *it, Evas_Object *icon)
966 idx - ic + (2 * ac)); 966 idx - ic + (2 * ac));
967 } 967 }
968 968
969 if(dit) _item_icon_set(dit, icon); 969 if (dit) _item_icon_set(dit, icon);
970 _sizing_eval(wd->self); 970 _sizing_eval(wd->self);
971 } 971 }
972} 972}
diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c
index 6a1aaffc4b..ea9a5a071a 100644
--- a/legacy/elementary/src/lib/elm_genlist.c
+++ b/legacy/elementary/src/lib/elm_genlist.c
@@ -39,7 +39,7 @@
39 return; \ 39 return; \
40 } \ 40 } \
41 } \ 41 } \
42 while(0) 42 while (0)
43 43
44typedef struct _Item_Block Item_Block; 44typedef struct _Item_Block Item_Block;
45typedef struct _Item_Cache Item_Cache; 45typedef struct _Item_Cache Item_Cache;
diff --git a/legacy/elementary/src/lib/elm_gesture_layer.c b/legacy/elementary/src/lib/elm_gesture_layer.c
index 3d6a61a449..2d6dcc7568 100644
--- a/legacy/elementary/src/lib/elm_gesture_layer.c
+++ b/legacy/elementary/src/lib/elm_gesture_layer.c
@@ -408,7 +408,7 @@ consume_event(Widget_Data *wd, void *event_info,
408{ /* Mark EVAS_EVENT_FLAG_ON_HOLD on events that are used by gesture layer */ 408{ /* Mark EVAS_EVENT_FLAG_ON_HOLD on events that are used by gesture layer */
409 /* ev_flags != EVAS_EVENT_FLAG_NONE means target used event and g-layer */ 409 /* ev_flags != EVAS_EVENT_FLAG_NONE means target used event and g-layer */
410 /* should not refeed this event. */ 410 /* should not refeed this event. */
411 if(!event_info) 411 if (!event_info)
412 return; /* This happens when restarting gestures */ 412 return; /* This happens when restarting gestures */
413 413
414 if ((ev_flags) || (!wd->repeat_events)) 414 if ((ev_flags) || (!wd->repeat_events))
@@ -1400,7 +1400,7 @@ static void
1400_compute_taps_center(Long_Tap_Type *st, 1400_compute_taps_center(Long_Tap_Type *st,
1401 Evas_Coord *x_out, Evas_Coord *y_out, Pointer_Event *pe) 1401 Evas_Coord *x_out, Evas_Coord *y_out, Pointer_Event *pe)
1402{ 1402{
1403 if(!eina_list_count(st->touched)) 1403 if (!eina_list_count(st->touched))
1404 return; 1404 return;
1405 1405
1406 Eina_List *l; 1406 Eina_List *l;
@@ -1524,7 +1524,7 @@ _n_long_tap_test(Evas_Object *obj, Pointer_Event *pe,
1524 1524
1525 case EVAS_CALLBACK_MULTI_MOVE: 1525 case EVAS_CALLBACK_MULTI_MOVE:
1526 case EVAS_CALLBACK_MOUSE_MOVE: 1526 case EVAS_CALLBACK_MOUSE_MOVE:
1527 if(st->info.n && 1527 if (st->info.n &&
1528 ((gesture->state == ELM_GESTURE_STATE_START) || 1528 ((gesture->state == ELM_GESTURE_STATE_START) ||
1529 (gesture->state == ELM_GESTURE_STATE_MOVE))) 1529 (gesture->state == ELM_GESTURE_STATE_MOVE)))
1530 { /* Report MOVE only if STARTED */ 1530 { /* Report MOVE only if STARTED */
@@ -2663,7 +2663,7 @@ _zoom_test(Evas_Object *obj, Pointer_Event *pe, void *event_info,
2663 Eina_List *l; 2663 Eina_List *l;
2664 Pointer_Event *p; 2664 Pointer_Event *p;
2665 2665
2666 if(eina_list_count(wd->touched) > 2) 2666 if (eina_list_count(wd->touched) > 2)
2667 { /* Process zoom only when 2 fingers on surface */ 2667 { /* Process zoom only when 2 fingers on surface */
2668 ev_flag = _set_state(gesture_zoom, 2668 ev_flag = _set_state(gesture_zoom,
2669 ELM_GESTURE_STATE_ABORT, &st->info, EINA_FALSE); 2669 ELM_GESTURE_STATE_ABORT, &st->info, EINA_FALSE);
@@ -2888,7 +2888,7 @@ _rotate_test(Evas_Object *obj, Pointer_Event *pe, void *event_info,
2888 Eina_List *l; 2888 Eina_List *l;
2889 Pointer_Event *p; 2889 Pointer_Event *p;
2890 2890
2891 if(eina_list_count(wd->touched) > 2) 2891 if (eina_list_count(wd->touched) > 2)
2892 { /* Process rotate only when 2 fingers on surface */ 2892 { /* Process rotate only when 2 fingers on surface */
2893 ev_flag = _set_state(gesture, 2893 ev_flag = _set_state(gesture,
2894 ELM_GESTURE_STATE_ABORT, &st->info, EINA_FALSE); 2894 ELM_GESTURE_STATE_ABORT, &st->info, EINA_FALSE);
@@ -3182,10 +3182,10 @@ _event_process(void *data, Evas_Object *obj __UNUSED__,
3182 int i; 3182 int i;
3183 Gesture_Info *g; 3183 Gesture_Info *g;
3184 printf("Gesture | State | is tested\n"); 3184 printf("Gesture | State | is tested\n");
3185 for(i = ELM_GESTURE_N_TAPS; i < ELM_GESTURE_LAST; i++) 3185 for (i = ELM_GESTURE_N_TAPS; i < ELM_GESTURE_LAST; i++)
3186 { 3186 {
3187 g = wd->gesture[i]; 3187 g = wd->gesture[i];
3188 if(g) 3188 if (g)
3189 printf(" %d %d %d\n", i, g->state, g->test); 3189 printf(" %d %d %d\n", i, g->state, g->test);
3190 } 3190 }
3191#endif 3191#endif
diff --git a/legacy/elementary/src/lib/elm_map.c b/legacy/elementary/src/lib/elm_map.c
index fd2a089934..4e3d881621 100644
--- a/legacy/elementary/src/lib/elm_map.c
+++ b/legacy/elementary/src/lib/elm_map.c
@@ -1078,9 +1078,9 @@ _track_place(Widget_Data *wd)
1078 _region_to_coord_convert(wd, lon_min, lat_max, size, &xmin, &ymin); 1078 _region_to_coord_convert(wd, lon_min, lat_max, size, &xmin, &ymin);
1079 _region_to_coord_convert(wd, lon_max, lat_min, size, &xmax, &ymax); 1079 _region_to_coord_convert(wd, lon_max, lat_min, size, &xmax, &ymax);
1080 1080
1081 if( !(xmin < px && xmax < px) && !(xmin > px+ow && xmax > px+ow)) 1081 if ( !(xmin < px && xmax < px) && !(xmin > px+ow && xmax > px+ow))
1082 { 1082 {
1083 if( !(ymin < py && ymax < py) && !(ymin > py+oh && ymax > py+oh)) 1083 if ( !(ymin < py && ymax < py) && !(ymin > py+oh && ymax > py+oh))
1084 { 1084 {
1085 //display the route 1085 //display the route
1086 evas_object_move(route, xmin - px, ymin - py); 1086 evas_object_move(route, xmin - px, ymin - py);
diff --git a/legacy/elementary/src/lib/elm_panes.c b/legacy/elementary/src/lib/elm_panes.c
index 3fc102a32f..249f9e2157 100644
--- a/legacy/elementary/src/lib/elm_panes.c
+++ b/legacy/elementary/src/lib/elm_panes.c
@@ -272,7 +272,7 @@ _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content)
272 if (part && (!strncmp(part, "elm.swallow.", 12))) part += 12; 272 if (part && (!strncmp(part, "elm.swallow.", 12))) part += 12;
273 if (!part || !strcmp(part, "left")) 273 if (!part || !strcmp(part, "left"))
274 _content_left_set(obj, content); 274 _content_left_set(obj, content);
275 else if(!strcmp(part, "right")) 275 else if (!strcmp(part, "right"))
276 _content_right_set(obj, content); 276 _content_right_set(obj, content);
277} 277}
278 278
diff --git a/legacy/elementary/src/lib/elm_toolbar.c b/legacy/elementary/src/lib/elm_toolbar.c
index 648a84c627..b867feeb2f 100644
--- a/legacy/elementary/src/lib/elm_toolbar.c
+++ b/legacy/elementary/src/lib/elm_toolbar.c
@@ -268,7 +268,7 @@ _del_pre_hook(Evas_Object *obj)
268 268
269 if (!wd) return; 269 if (!wd) return;
270 it = ELM_TOOLBAR_ITEM_FROM_INLIST(wd->items); 270 it = ELM_TOOLBAR_ITEM_FROM_INLIST(wd->items);
271 while(it) 271 while (it)
272 { 272 {
273 next = ELM_TOOLBAR_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->next); 273 next = ELM_TOOLBAR_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->next);
274 _item_del(it); 274 _item_del(it);
diff --git a/legacy/elementary/src/lib/elm_transit.c b/legacy/elementary/src/lib/elm_transit.c
index 6f1f49d454..70c7d834bd 100644
--- a/legacy/elementary/src/lib/elm_transit.c
+++ b/legacy/elementary/src/lib/elm_transit.c
@@ -148,7 +148,7 @@ _remove_obj_from_list(Elm_Transit *transit, Evas_Object *obj)
148{ 148{
149 //Remove duplicated objects 149 //Remove duplicated objects
150 //TODO: Need to consider about optimizing here 150 //TODO: Need to consider about optimizing here
151 while(1) 151 while (1)
152 { 152 {
153 if (!eina_list_data_find_list(transit->objs, obj)) 153 if (!eina_list_data_find_list(transit->objs, obj))
154 break; 154 break;
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 364dffe3ae..44bd6d9101 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -3392,7 +3392,7 @@ elm_win_socket_listen(Evas_Object *obj, const char *svcname, int svcnum, Eina_Bo
3392 if (!win) return EINA_FALSE; 3392 if (!win) return EINA_FALSE;
3393 if (!win->ee) return EINA_FALSE; 3393 if (!win->ee) return EINA_FALSE;
3394 3394
3395 if(!ecore_evas_extn_socket_listen(win->ee, svcname, svcnum, svcsys)) 3395 if (!ecore_evas_extn_socket_listen(win->ee, svcname, svcnum, svcsys))
3396 return EINA_FALSE; 3396 return EINA_FALSE;
3397 3397
3398 return EINA_TRUE; 3398 return EINA_TRUE;