summaryrefslogtreecommitdiff
path: root/src/bin
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
commit8023050cc2f8bd782f700756d9ef339ec1f21a87 (patch)
tree8d8650ea94ae4f083c28e80b900d2092caf78a40 /src/bin
parenta037a137b428d735e1843833e28fc783b4d998d1 (diff)
elm: Fixed formatting. Added a space after 'if/while/for'
SVN revision: 69744
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_box.c6
-rw-r--r--src/bin/test_bubble.c2
-rw-r--r--src/bin/test_calendar.c2
-rw-r--r--src/bin/test_clock.c2
-rw-r--r--src/bin/test_diskselector.c2
-rw-r--r--src/bin/test_entry.c4
-rw-r--r--src/bin/test_fileselector_button.c2
-rw-r--r--src/bin/test_fileselector_entry.c2
-rw-r--r--src/bin/test_gengrid.c2
-rw-r--r--src/bin/test_genlist.c2
-rw-r--r--src/bin/test_hoversel.c2
-rw-r--r--src/bin/test_index.c2
-rw-r--r--src/bin/test_list.c18
13 files changed, 24 insertions, 24 deletions
diff --git a/src/bin/test_box.c b/src/bin/test_box.c
index 2ac3aafd1..893fb6ea1 100644
--- a/src/bin/test_box.c
+++ b/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/src/bin/test_bubble.c b/src/bin/test_bubble.c
index 57433dc96..42b50be54 100644
--- a/src/bin/test_bubble.c
+++ b/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/src/bin/test_calendar.c b/src/bin/test_calendar.c
index 045f49c58..712623141 100644
--- a/src/bin/test_calendar.c
+++ b/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/src/bin/test_clock.c b/src/bin/test_clock.c
index 6940242d6..8f1bba0e4 100644
--- a/src/bin/test_clock.c
+++ b/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/src/bin/test_diskselector.c b/src/bin/test_diskselector.c
index 621abde12..d98318348 100644
--- a/src/bin/test_diskselector.c
+++ b/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/src/bin/test_entry.c b/src/bin/test_entry.c
index 7ca9febdd..0c31d96da 100644
--- a/src/bin/test_entry.c
+++ b/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/src/bin/test_fileselector_button.c b/src/bin/test_fileselector_button.c
index ed565bd52..5f488966c 100644
--- a/src/bin/test_fileselector_button.c
+++ b/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/src/bin/test_fileselector_entry.c b/src/bin/test_fileselector_entry.c
index f86b2d1bc..e3afca64d 100644
--- a/src/bin/test_fileselector_entry.c
+++ b/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/src/bin/test_gengrid.c b/src/bin/test_gengrid.c
index c7a817e2a..129f2641e 100644
--- a/src/bin/test_gengrid.c
+++ b/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/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 24681505f..1c64537d6 100644
--- a/src/bin/test_genlist.c
+++ b/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/src/bin/test_hoversel.c b/src/bin/test_hoversel.c
index 023663bca..1c45aa914 100644
--- a/src/bin/test_hoversel.c
+++ b/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/src/bin/test_index.c b/src/bin/test_index.c
index be43daba5..d02909639 100644
--- a/src/bin/test_index.c
+++ b/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/src/bin/test_list.c b/src/bin/test_list.c
index 7ce4c7fcf..832df3cd4 100644
--- a/src/bin/test_list.c
+++ b/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 }