summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2017-04-20 14:21:21 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 17:31:58 +0900
commita71b770bbc848bff2231bac1e75bf2a85885aca5 (patch)
treee7dcd82995e3793fd5d1cedcc06de673709d9497 /src
parent30cd3f86153b038011b8cd42c539540a56f4759b (diff)
examples/evas: Use printf instead of fprintf(stdout, ...)
Summary: Applies the correction purely mechanically using the following shell command-line: src/examples/evas$ grep -sr 'fprintf(stdout' . | cut -d: -f1 | uniq | \ xargs sed -i "s/fprintf(stdout/printf(/" This fixes a few warnings about lack of a format string: warning: format not a string literal and no format arguments [-Wformat-security] fprintf(stdout, commands); Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D4691
Diffstat (limited to 'src')
-rw-r--r--src/examples/evas/evas-3d-colorpick.c8
-rw-r--r--src/examples/evas/evas-3d-frustum.c18
-rw-r--r--src/examples/evas/evas-3d-shadows.c22
-rw-r--r--src/examples/evas/evas-aspect-hints.c10
-rw-r--r--src/examples/evas/evas-box.c28
-rw-r--r--src/examples/evas/evas-events.c50
-rw-r--r--src/examples/evas/evas-hints.c28
-rw-r--r--src/examples/evas/evas-images.c24
-rw-r--r--src/examples/evas/evas-images2.c10
-rw-r--r--src/examples/evas/evas-images4.c8
-rw-r--r--src/examples/evas/evas-images5.c6
-rw-r--r--src/examples/evas/evas-multiseat-events.c26
-rw-r--r--src/examples/evas/evas-object-manipulation-eo.c22
-rw-r--r--src/examples/evas/evas-object-manipulation.c24
-rw-r--r--src/examples/evas/evas-smart-interface.c32
-rw-r--r--src/examples/evas/evas-smart-object.c22
-rw-r--r--src/examples/evas/evas-stacking.c46
-rw-r--r--src/examples/evas/evas-textblock-obstacles.c18
-rw-r--r--src/examples/evas/evas-transparent.c6
19 files changed, 204 insertions, 204 deletions
diff --git a/src/examples/evas/evas-3d-colorpick.c b/src/examples/evas/evas-3d-colorpick.c
index 71a4fca..751fe3e 100644
--- a/src/examples/evas/evas-3d-colorpick.c
+++ b/src/examples/evas/evas-3d-colorpick.c
@@ -193,7 +193,7 @@ _on_key_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
193 _recalculate_position(); 193 _recalculate_position();
194 } 194 }
195 else 195 else
196 fprintf(stdout, "Down, Up for position of camera; Left, Right for scale of each node"); 196 printf("Down, Up for position of camera; Left, Right for scale of each node");
197} 197}
198static void 198static void
199_on_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *eo EINA_UNUSED, void *event_info) 199_on_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *eo EINA_UNUSED, void *event_info)
@@ -215,7 +215,7 @@ _on_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *eo EINA
215 diff_sec = ((float)time) / CLOCKS_PER_SEC / 10; 215 diff_sec = ((float)time) / CLOCKS_PER_SEC / 10;
216 if (flag) 216 if (flag)
217 { 217 {
218 fprintf(stdout, "Boom! Time expended for color pick: %2.7f .\n", diff_sec); 218 printf("Boom! Time expended for color pick: %2.7f .\n", diff_sec);
219 evas_canvas3d_node_scale_set(n, VEC_3(SMALL_SCALE)); 219 evas_canvas3d_node_scale_set(n, VEC_3(SMALL_SCALE));
220 } 220 }
221 } 221 }
@@ -227,7 +227,7 @@ _on_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *eo EINA
227 diff_sec = ((float)time) / CLOCKS_PER_SEC / 10; 227 diff_sec = ((float)time) / CLOCKS_PER_SEC / 10;
228 if (flag) 228 if (flag)
229 { 229 {
230 fprintf(stdout, "Boom! Time expended for geometry pick: %2.7f .\n", diff_sec); 230 printf("Boom! Time expended for geometry pick: %2.7f .\n", diff_sec);
231 evas_canvas3d_node_scale_set(n, VEC_3(BIG_SCALE)); 231 evas_canvas3d_node_scale_set(n, VEC_3(BIG_SCALE));
232 } 232 }
233 } 233 }
@@ -356,7 +356,7 @@ int main(int argc, char **argv)
356 if (!precision) precision = 30; 356 if (!precision) precision = 30;
357 if (!texture) texture = (char *)image_path; 357 if (!texture) texture = (char *)image_path;
358 358
359 fprintf(stdout, "row - %d, col - %d, precision of spheres - %d, texture - %s\n", 359 printf("row - %d, col - %d, precision of spheres - %d, texture - %s\n",
360 row, col, precision, texture); 360 row, col, precision, texture);
361 361
362 ecore_evas = ecore_evas_new("opengl_x11", 10, 10, WIDTH, HEIGHT, NULL); 362 ecore_evas = ecore_evas_new("opengl_x11", 10, 10, WIDTH, HEIGHT, NULL);
diff --git a/src/examples/evas/evas-3d-frustum.c b/src/examples/evas/evas-3d-frustum.c
index a107cd1..a9b60fb 100644
--- a/src/examples/evas/evas-3d-frustum.c
+++ b/src/examples/evas/evas-3d-frustum.c
@@ -65,12 +65,12 @@ Evas_Canvas3D_Frustum_Mode key = EVAS_CANVAS3D_FRUSTUM_MODE_AABB;
65static void 65static void
66_show_help() 66_show_help()
67{ 67{
68 fprintf(stdout, "Press 'w'/'s' key to move far frustum plane from/to the camera\n"); 68 printf("Press 'w'/'s' key to move far frustum plane from/to the camera\n");
69 fprintf(stdout, "Press 't'/'g' key to move near frustum plane from/to the camera\n"); 69 printf("Press 't'/'g' key to move near frustum plane from/to the camera\n");
70 fprintf(stdout, "Press '1'/'2' key to set camera to the first/second position\n"); 70 printf("Press '1'/'2' key to set camera to the first/second position\n");
71 fprintf(stdout, "Press '3'/'4'/'5' key to set bounding sphere/aabb/central point mode\n"); 71 printf("Press '3'/'4'/'5' key to set bounding sphere/aabb/central point mode\n");
72 fprintf(stdout, "Press 'i', 'k', 'j', 'l', 'u' and 'o' keys to move mesh node in 3D\n"); 72 printf("Press 'i', 'k', 'j', 'l', 'u' and 'o' keys to move mesh node in 3D\n");
73 fprintf(stdout, "Press 'z', 'x', 'c', 'Z', 'X' and 'C' keys to change scaling constants of mesh\n"); 73 printf("Press 'z', 'x', 'c', 'Z', 'X' and 'C' keys to change scaling constants of mesh\n");
74} 74}
75 75
76static void 76static void
@@ -246,13 +246,13 @@ _on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *eo EINA_UNUSED, void
246 { 246 {
247 evas_canvas3d_node_position_set(scene->camera_node, 0.0, 0.0, 300.0); 247 evas_canvas3d_node_position_set(scene->camera_node, 0.0, 0.0, 300.0);
248 evas_canvas3d_node_look_at_set(scene->camera_node, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0); 248 evas_canvas3d_node_look_at_set(scene->camera_node, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0);
249 fprintf(stdout, "Changed position and view of camera\n"); 249 printf("Changed position and view of camera\n");
250 } 250 }
251 else if (!strcmp("2", ev->key)) 251 else if (!strcmp("2", ev->key))
252 { 252 {
253 evas_canvas3d_node_position_set(scene->camera_node, 300.0, 300.0, 300.0); 253 evas_canvas3d_node_position_set(scene->camera_node, 300.0, 300.0, 300.0);
254 evas_canvas3d_node_look_at_set(scene->camera_node, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0); 254 evas_canvas3d_node_look_at_set(scene->camera_node, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0);
255 fprintf(stdout, "Changed position and view of camera\n"); 255 printf("Changed position and view of camera\n");
256 } 256 }
257 else if (!strcmp("3", ev->key)) 257 else if (!strcmp("3", ev->key))
258 { 258 {
@@ -273,7 +273,7 @@ _on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *eo EINA_UNUSED, void
273 273
274 _redraw_bounding_object(data); 274 _redraw_bounding_object(data);
275 frustum = evas_canvas3d_camera_node_visible_get(scene->camera, scene->camera_node, scene->mesh_node_model, key); 275 frustum = evas_canvas3d_camera_node_visible_get(scene->camera, scene->camera_node, scene->mesh_node_model, key);
276 fprintf(stdout, "far - %f frustum - %d radius - %f\n", ffar, frustum, radius); 276 printf("far - %f frustum - %d radius - %f\n", ffar, frustum, radius);
277} 277}
278 278
279static void 279static void
diff --git a/src/examples/evas/evas-3d-shadows.c b/src/examples/evas/evas-3d-shadows.c
index 2b0f7e9..8b4d710 100644
--- a/src/examples/evas/evas-3d-shadows.c
+++ b/src/examples/evas/evas-3d-shadows.c
@@ -130,17 +130,17 @@ _cb_collision(void *data EINA_UNUSED, const Efl_Event *event)
130static void 130static void
131_show_help() 131_show_help()
132{ 132{
133 fprintf(stdout, "Press 'w'/'s' key to move up/down object\n"); 133 printf("Press 'w'/'s' key to move up/down object\n");
134 fprintf(stdout, "Press 'a'/'d' key to move left/right object\n"); 134 printf("Press 'a'/'d' key to move left/right object\n");
135 fprintf(stdout, "Press 'q'/'e' key to move near/far object\n"); 135 printf("Press 'q'/'e' key to move near/far object\n");
136 fprintf(stdout, "Cude and model can be moved.\n"); 136 printf("Cude and model can be moved.\n");
137 fprintf(stdout, "Cube detects intersection with model, sphere, cone\n"); 137 printf("Cube detects intersection with model, sphere, cone\n");
138 fprintf(stdout, "Model detects intersection with sphere\n"); 138 printf("Model detects intersection with sphere\n");
139 fprintf(stdout, "Press '1'/'2' key to change kind of node - billboard/normal model\n"); 139 printf("Press '1'/'2' key to change kind of node - billboard/normal model\n");
140 fprintf(stdout, "Press '3'/'4' key to enable/disable post render with anti-aliasing\n"); 140 printf("Press '3'/'4' key to enable/disable post render with anti-aliasing\n");
141 fprintf(stdout, "Press '5'/'6' key to enable/disable shadow effect\n"); 141 printf("Press '5'/'6' key to enable/disable shadow effect\n");
142 fprintf(stdout, "Press Up/Down key to change position of camera\n"); 142 printf("Press Up/Down key to change position of camera\n");
143 fprintf(stdout, "Press 'i' key to return initial view of scene\n"); 143 printf("Press 'i' key to return initial view of scene\n");
144} 144}
145 145
146static Eina_Bool 146static Eina_Bool
diff --git a/src/examples/evas/evas-aspect-hints.c b/src/examples/evas/evas-aspect-hints.c
index 1d1b911..7a05d2c 100644
--- a/src/examples/evas/evas-aspect-hints.c
+++ b/src/examples/evas/evas-aspect-hints.c
@@ -92,7 +92,7 @@ _on_keydown(void *data EINA_UNUSED,
92 if (evas_key_modifier_is_set(mods, "Shift") && 92 if (evas_key_modifier_is_set(mods, "Shift") &&
93 strcmp(ev->key, "h") == 0) /* print help */ 93 strcmp(ev->key, "h") == 0) /* print help */
94 { 94 {
95 fprintf(stdout, "commands are:\n" 95 printf("commands are:\n"
96 "\tc - cycle aspect control on object\n" 96 "\tc - cycle aspect control on object\n"
97 "\th - change horizontal aspect component\n" 97 "\th - change horizontal aspect component\n"
98 "\tv - change vertical aspect component\n" 98 "\tv - change vertical aspect component\n"
@@ -108,7 +108,7 @@ _on_keydown(void *data EINA_UNUSED,
108 108
109 evas_object_size_hint_aspect_get(d.rect, &aspect, &w, &h); 109 evas_object_size_hint_aspect_get(d.rect, &aspect, &w, &h);
110 110
111 fprintf(stdout, "Object has aspect %s, with horizontal compontent %d" 111 printf("Object has aspect %s, with horizontal compontent %d"
112 " and vertical compontent %d\n", 112 " and vertical compontent %d\n",
113 _get_aspect_name(aspect), w, h); 113 _get_aspect_name(aspect), w, h);
114 114
@@ -126,7 +126,7 @@ _on_keydown(void *data EINA_UNUSED,
126 126
127 evas_object_size_hint_aspect_set(d.rect, aspect, w, h); 127 evas_object_size_hint_aspect_set(d.rect, aspect, w, h);
128 128
129 fprintf(stdout, "Changing aspect control to %s\n", 129 printf("Changing aspect control to %s\n",
130 _get_aspect_name(aspect)); 130 _get_aspect_name(aspect));
131 131
132 return; 132 return;
@@ -143,7 +143,7 @@ _on_keydown(void *data EINA_UNUSED,
143 143
144 evas_object_size_hint_aspect_set(d.rect, aspect, w, h); 144 evas_object_size_hint_aspect_set(d.rect, aspect, w, h);
145 145
146 fprintf(stdout, "Changing horizontal aspect component to %d\n", w); 146 printf("Changing horizontal aspect component to %d\n", w);
147 147
148 return; 148 return;
149 } 149 }
@@ -159,7 +159,7 @@ _on_keydown(void *data EINA_UNUSED,
159 159
160 evas_object_size_hint_aspect_set(d.rect, aspect, w, h); 160 evas_object_size_hint_aspect_set(d.rect, aspect, w, h);
161 161
162 fprintf(stdout, "Changing vertical aspect component to %d\n", h); 162 printf("Changing vertical aspect component to %d\n", h);
163 163
164 return; 164 return;
165 } 165 }
diff --git a/src/examples/evas/evas-box.c b/src/examples/evas/evas-box.c
index 55e0c21..b6472d6 100644
--- a/src/examples/evas/evas-box.c
+++ b/src/examples/evas/evas-box.c
@@ -108,7 +108,7 @@ _on_keydown(void *data EINA_UNUSED,
108 108
109 if (strcmp(ev->key, "h") == 0) /* print help */ 109 if (strcmp(ev->key, "h") == 0) /* print help */
110 { 110 {
111 fprintf(stdout, "%s", commands); 111 printf("%s", commands);
112 return; 112 return;
113 } 113 }
114 114
@@ -161,7 +161,7 @@ list_free:
161 161
162 evas_object_box_align_set(d.box, h, v); 162 evas_object_box_align_set(d.box, h, v);
163 163
164 fprintf(stdout, "Applying new alignment values (%.1f, %.1f)" 164 printf("Applying new alignment values (%.1f, %.1f)"
165 " on the box\n", h, v); 165 " on the box\n", h, v);
166 return; 166 return;
167 } 167 }
@@ -179,7 +179,7 @@ list_free:
179 179
180 evas_object_box_padding_set(d.box, h, v); 180 evas_object_box_padding_set(d.box, h, v);
181 181
182 fprintf(stdout, "Applying new padding values (%d, %d)" 182 printf("Applying new padding values (%d, %d)"
183 " on the box\n", h, v); 183 " on the box\n", h, v);
184 return; 184 return;
185 } 185 }
@@ -189,7 +189,7 @@ list_free:
189 evas_object_box_layout_set( 189 evas_object_box_layout_set(
190 d.box, evas_object_box_layout_horizontal, NULL, NULL); 190 d.box, evas_object_box_layout_horizontal, NULL, NULL);
191 191
192 fprintf(stdout, "Applying '%s' layout on the box\n", "horizontal"); 192 printf("Applying '%s' layout on the box\n", "horizontal");
193 return; 193 return;
194 } 194 }
195 195
@@ -198,7 +198,7 @@ list_free:
198 evas_object_box_layout_set( 198 evas_object_box_layout_set(
199 d.box, evas_object_box_layout_vertical, NULL, NULL); 199 d.box, evas_object_box_layout_vertical, NULL, NULL);
200 200
201 fprintf(stdout, "Applying '%s' layout on the box\n", "vertical"); 201 printf("Applying '%s' layout on the box\n", "vertical");
202 return; 202 return;
203 } 203 }
204 204
@@ -208,7 +208,7 @@ list_free:
208 d.box, evas_object_box_layout_homogeneous_horizontal, NULL, 208 d.box, evas_object_box_layout_homogeneous_horizontal, NULL,
209 NULL); 209 NULL);
210 210
211 fprintf(stdout, "Applying '%s' layout on the box\n", 211 printf("Applying '%s' layout on the box\n",
212 "horizontal homogeneous"); 212 "horizontal homogeneous");
213 return; 213 return;
214 } 214 }
@@ -218,7 +218,7 @@ list_free:
218 evas_object_box_layout_set( 218 evas_object_box_layout_set(
219 d.box, evas_object_box_layout_homogeneous_vertical, NULL, NULL); 219 d.box, evas_object_box_layout_homogeneous_vertical, NULL, NULL);
220 220
221 fprintf(stdout, "Applying '%s' layout on the box\n", 221 printf("Applying '%s' layout on the box\n",
222 "vertical homogeneous"); 222 "vertical homogeneous");
223 return; 223 return;
224 } 224 }
@@ -229,7 +229,7 @@ list_free:
229 d.box, evas_object_box_layout_homogeneous_max_size_horizontal, 229 d.box, evas_object_box_layout_homogeneous_max_size_horizontal,
230 NULL, NULL); 230 NULL, NULL);
231 231
232 fprintf(stdout, "Applying '%s' layout on the box\n", 232 printf("Applying '%s' layout on the box\n",
233 "horizontal maximum size homogeneous"); 233 "horizontal maximum size homogeneous");
234 return; 234 return;
235 } 235 }
@@ -240,7 +240,7 @@ list_free:
240 d.box, evas_object_box_layout_homogeneous_max_size_vertical, 240 d.box, evas_object_box_layout_homogeneous_max_size_vertical,
241 NULL, NULL); 241 NULL, NULL);
242 242
243 fprintf(stdout, "Applying '%s' layout on the box\n", 243 printf("Applying '%s' layout on the box\n",
244 "vertical maximum size homogeneous"); 244 "vertical maximum size homogeneous");
245 return; 245 return;
246 } 246 }
@@ -250,7 +250,7 @@ list_free:
250 evas_object_box_layout_set( 250 evas_object_box_layout_set(
251 d.box, evas_object_box_layout_flow_horizontal, NULL, NULL); 251 d.box, evas_object_box_layout_flow_horizontal, NULL, NULL);
252 252
253 fprintf(stdout, "Applying '%s' layout on the box\n", "horizontal flow"); 253 printf("Applying '%s' layout on the box\n", "horizontal flow");
254 return; 254 return;
255 } 255 }
256 256
@@ -259,7 +259,7 @@ list_free:
259 evas_object_box_layout_set( 259 evas_object_box_layout_set(
260 d.box, evas_object_box_layout_flow_vertical, NULL, NULL); 260 d.box, evas_object_box_layout_flow_vertical, NULL, NULL);
261 261
262 fprintf(stdout, "Applying '%s' layout on the box\n", "vertical flow"); 262 printf("Applying '%s' layout on the box\n", "vertical flow");
263 return; 263 return;
264 } 264 }
265 265
@@ -268,7 +268,7 @@ list_free:
268 evas_object_box_layout_set( 268 evas_object_box_layout_set(
269 d.box, evas_object_box_layout_stack, NULL, NULL); 269 d.box, evas_object_box_layout_stack, NULL, NULL);
270 270
271 fprintf(stdout, "Applying '%s' layout on the box\n", "stack"); 271 printf("Applying '%s' layout on the box\n", "stack");
272 return; 272 return;
273 } 273 }
274 274
@@ -276,7 +276,7 @@ list_free:
276 { 276 {
277 evas_object_box_layout_set(d.box, _custom_layout, NULL, NULL); 277 evas_object_box_layout_set(d.box, _custom_layout, NULL, NULL);
278 278
279 fprintf(stdout, "Applying '%s' layout on the box\n", "CUSTOM"); 279 printf("Applying '%s' layout on the box\n", "CUSTOM");
280 return; 280 return;
281 } 281 }
282} 282}
@@ -361,7 +361,7 @@ main(void)
361 evas_object_image_border_center_fill_set(d.border, EVAS_BORDER_FILL_NONE); 361 evas_object_image_border_center_fill_set(d.border, EVAS_BORDER_FILL_NONE);
362 evas_object_show(d.border); 362 evas_object_show(d.border);
363 363
364 fprintf(stdout, "%s", commands); 364 printf("%s", commands);
365 365
366 _canvas_resize_cb(d.ee); 366 _canvas_resize_cb(d.ee);
367 ecore_main_loop_begin(); 367 ecore_main_loop_begin();
diff --git a/src/examples/evas/evas-events.c b/src/examples/evas/evas-events.c
index 34ffd3e..6a978e5 100644
--- a/src/examples/evas/evas-events.c
+++ b/src/examples/evas/evas-events.c
@@ -66,13 +66,13 @@ _object_focus_in_cb(void *data EINA_UNUSED,
66 Evas *e, 66 Evas *e,
67 void *event_info) 67 void *event_info)
68{ 68{
69 fprintf(stdout, "An object got focused: %s\n", 69 printf("An object got focused: %s\n",
70 evas_object_name_get(event_info)); 70 evas_object_name_get(event_info));
71 71
72 fprintf(stdout, "Let's recheck it: %s\n", 72 printf("Let's recheck it: %s\n",
73 evas_object_name_get(evas_focus_get(e))); 73 evas_object_name_get(evas_focus_get(e)));
74 74
75 fprintf(stdout, "And again: %s\n", evas_object_focus_get(event_info) ? 75 printf("And again: %s\n", evas_object_focus_get(event_info) ?
76 "OK!" : "Oops, something is bad."); 76 "OK!" : "Oops, something is bad.");
77} 77}
78 78
@@ -82,7 +82,7 @@ _render_flush_cb(void *data EINA_UNUSED,
82 Evas *e EINA_UNUSED, 82 Evas *e EINA_UNUSED,
83 void *event_info EINA_UNUSED) 83 void *event_info EINA_UNUSED)
84{ 84{
85 fprintf(stdout, "Canvas is about to flush its rendering pipeline!\n"); 85 printf("Canvas is about to flush its rendering pipeline!\n");
86} 86}
87 87
88/* put some action in the canvas */ 88/* put some action in the canvas */
@@ -106,7 +106,7 @@ _resize_cb(void *data EINA_UNUSED)
106static Eina_Bool 106static Eina_Bool
107_thaw_cb(void *data EINA_UNUSED) 107_thaw_cb(void *data EINA_UNUSED)
108{ 108{
109 fprintf(stdout, "Canvas was frozen %d times, now thawing.\n", 109 printf("Canvas was frozen %d times, now thawing.\n",
110 evas_event_freeze_get(d.canvas)); 110 evas_event_freeze_get(d.canvas));
111 evas_event_thaw(d.canvas); 111 evas_event_thaw(d.canvas);
112 return EINA_FALSE; /* do not re-issue the timer */ 112 return EINA_FALSE; /* do not re-issue the timer */
@@ -119,7 +119,7 @@ _on_mouse_in(void *data EINA_UNUSED,
119 Evas_Object *o EINA_UNUSED, 119 Evas_Object *o EINA_UNUSED,
120 void *einfo EINA_UNUSED) 120 void *einfo EINA_UNUSED)
121{ 121{
122 fprintf(stdout, "Enlightenment logo has had the mouse in.\n"); 122 printf("Enlightenment logo has had the mouse in.\n");
123} 123}
124 124
125static void 125static void
@@ -128,7 +128,7 @@ _on_mouse_out(void *data EINA_UNUSED,
128 Evas_Object *o EINA_UNUSED, 128 Evas_Object *o EINA_UNUSED,
129 void *einfo EINA_UNUSED) 129 void *einfo EINA_UNUSED)
130{ 130{
131 fprintf(stdout, "Enlightenment logo has had the mouse out.\n"); 131 printf("Enlightenment logo has had the mouse out.\n");
132} /* mouse exits the object's area */ 132} /* mouse exits the object's area */
133 133
134/* examine the keys pressed */ 134/* examine the keys pressed */
@@ -141,8 +141,8 @@ _on_keydown(void *data EINA_UNUSED,
141 const Evas_Modifier *mods; 141 const Evas_Modifier *mods;
142 Evas_Event_Key_Down *ev = einfo; 142 Evas_Event_Key_Down *ev = einfo;
143 143
144 fprintf(stdout, "We've got key input: %s\n", ev->key); 144 printf("We've got key input: %s\n", ev->key);
145 fprintf(stdout, "It actually came from %s\n", d.focus ? 145 printf("It actually came from %s\n", d.focus ?
146 "focus" : "key grab"); 146 "focus" : "key grab");
147 147
148 if (strcmp(ev->key, "h") == 0) /* print help */ 148 if (strcmp(ev->key, "h") == 0) /* print help */
@@ -155,13 +155,13 @@ _on_keydown(void *data EINA_UNUSED,
155 { 155 {
156 if (d.resize_timer != NULL) 156 if (d.resize_timer != NULL)
157 { 157 {
158 fprintf(stdout, "Stopping animation timer\n"); 158 printf("Stopping animation timer\n");
159 ecore_timer_del(d.resize_timer); 159 ecore_timer_del(d.resize_timer);
160 d.resize_timer = NULL; 160 d.resize_timer = NULL;
161 } 161 }
162 else 162 else
163 { 163 {
164 fprintf(stdout, "Re-issuing animation timer\n"); 164 printf("Re-issuing animation timer\n");
165 d.resize_timer = ecore_timer_add(2, _resize_cb, NULL); 165 d.resize_timer = ecore_timer_add(2, _resize_cb, NULL);
166 } 166 }
167 return; 167 return;
@@ -174,56 +174,56 @@ _on_keydown(void *data EINA_UNUSED,
174 Evas_Modifier_Mask mask = 174 Evas_Modifier_Mask mask =
175 evas_key_modifier_mask_get(d.canvas, "Control"); 175 evas_key_modifier_mask_get(d.canvas, "Control");
176 176
177 fprintf(stdout, "Switching to %s for key input\n", d.focus ? 177 printf("Switching to %s for key input\n", d.focus ?
178 "key grabs" : "focus"); 178 "key grabs" : "focus");
179 179
180 if (d.focus) 180 if (d.focus)
181 { 181 {
182 evas_object_focus_set(d.bg, EINA_FALSE); 182 evas_object_focus_set(d.bg, EINA_FALSE);
183 fprintf(stdout, "Focused object is now %s\n", 183 printf("Focused object is now %s\n",
184 evas_focus_get(d.canvas) ? 184 evas_focus_get(d.canvas) ?
185 "still valid! Something went wrong." : "none."); 185 "still valid! Something went wrong." : "none.");
186 186
187 ret = evas_object_key_grab(d.bg, "a", 0, 0, EINA_TRUE); 187 ret = evas_object_key_grab(d.bg, "a", 0, 0, EINA_TRUE);
188 if (!ret) 188 if (!ret)
189 { 189 {
190 fprintf(stdout, "Something went wrong with key grabs.\n"); 190 printf("Something went wrong with key grabs.\n");
191 goto c_end; 191 goto c_end;
192 } 192 }
193 ret = evas_object_key_grab(d.bg, "c", 0, 0, EINA_TRUE); 193 ret = evas_object_key_grab(d.bg, "c", 0, 0, EINA_TRUE);
194 if (!ret) 194 if (!ret)
195 { 195 {
196 fprintf(stdout, "Something went wrong with key grabs.\n"); 196 printf("Something went wrong with key grabs.\n");
197 goto c_end; 197 goto c_end;
198 } 198 }
199 ret = evas_object_key_grab(d.bg, "d", 0, 0, EINA_TRUE); 199 ret = evas_object_key_grab(d.bg, "d", 0, 0, EINA_TRUE);
200 if (!ret) 200 if (!ret)
201 { 201 {
202 fprintf(stdout, "Something went wrong with key grabs.\n"); 202 printf("Something went wrong with key grabs.\n");
203 goto c_end; 203 goto c_end;
204 } 204 }
205 ret = evas_object_key_grab(d.bg, "f", 0, 0, EINA_TRUE); 205 ret = evas_object_key_grab(d.bg, "f", 0, 0, EINA_TRUE);
206 if (!ret) 206 if (!ret)
207 { 207 {
208 fprintf(stdout, "Something went wrong with key grabs.\n"); 208 printf("Something went wrong with key grabs.\n");
209 goto c_end; 209 goto c_end;
210 } 210 }
211 ret = evas_object_key_grab(d.bg, "p", 0, 0, EINA_TRUE); 211 ret = evas_object_key_grab(d.bg, "p", 0, 0, EINA_TRUE);
212 if (!ret) 212 if (!ret)
213 { 213 {
214 fprintf(stdout, "Something went wrong with key grabs.\n"); 214 printf("Something went wrong with key grabs.\n");
215 goto c_end; 215 goto c_end;
216 } 216 }
217 ret = evas_object_key_grab(d.bg, "o", mask, 0, EINA_TRUE); 217 ret = evas_object_key_grab(d.bg, "o", mask, 0, EINA_TRUE);
218 if (!ret) 218 if (!ret)
219 { 219 {
220 fprintf(stdout, "Something went wrong with key grabs.\n"); 220 printf("Something went wrong with key grabs.\n");
221 goto c_end; 221 goto c_end;
222 } 222 }
223 ret = evas_object_key_grab(d.bg, "h", 0, 0, EINA_TRUE); 223 ret = evas_object_key_grab(d.bg, "h", 0, 0, EINA_TRUE);
224 if (!ret) 224 if (!ret)
225 { 225 {
226 fprintf(stdout, "Something went wrong with key grabs.\n"); 226 printf("Something went wrong with key grabs.\n");
227 goto c_end; 227 goto c_end;
228 } 228 }
229 } 229 }
@@ -248,7 +248,7 @@ c_end:
248 248
249 if (strcmp(ev->key, "d") == 0) /* delete canvas' callbacks */ 249 if (strcmp(ev->key, "d") == 0) /* delete canvas' callbacks */
250 { 250 {
251 fprintf(stdout, "Deleting canvas event callbacks\n"); 251 printf("Deleting canvas event callbacks\n");
252 evas_event_callback_del_full(evas, EVAS_CALLBACK_RENDER_FLUSH_PRE, 252 evas_event_callback_del_full(evas, EVAS_CALLBACK_RENDER_FLUSH_PRE,
253 _render_flush_cb, NULL); 253 _render_flush_cb, NULL);
254 evas_event_callback_del_full( 254 evas_event_callback_del_full(
@@ -259,7 +259,7 @@ c_end:
259 259
260 if (strcmp(ev->key, "f") == 0) /* freeze input for 3 seconds */ 260 if (strcmp(ev->key, "f") == 0) /* freeze input for 3 seconds */
261 { 261 {
262 fprintf(stdout, "Freezing input for 3 seconds\n"); 262 printf("Freezing input for 3 seconds\n");
263 evas_event_freeze(evas); 263 evas_event_freeze(evas);
264 d.freeze_timer = ecore_timer_add(3, _thaw_cb, NULL); 264 d.freeze_timer = ecore_timer_add(3, _thaw_cb, NULL);
265 return; 265 return;
@@ -270,7 +270,7 @@ c_end:
270 { 270 {
271 Eina_Bool precise = evas_object_precise_is_inside_get(d.img); 271 Eina_Bool precise = evas_object_precise_is_inside_get(d.img);
272 272
273 fprintf(stdout, "Toggling precise point collision detection %s on" 273 printf("Toggling precise point collision detection %s on"
274 " Enlightenment logo\n", precise ? "off" : "on"); 274 " Enlightenment logo\n", precise ? "off" : "on");
275 evas_object_precise_is_inside_set(d.img, !precise); 275 evas_object_precise_is_inside_set(d.img, !precise);
276 276
@@ -283,7 +283,7 @@ c_end:
283 * rectangle to the middle 283 * rectangle to the middle
284 * of the canvas */ 284 * of the canvas */
285 { 285 {
286 fprintf(stdout, "Toggling obscured rectangle on canvas\n"); 286 printf("Toggling obscured rectangle on canvas\n");
287 if (!d.obscured) 287 if (!d.obscured)
288 { 288 {
289 int w, h; 289 int w, h;
@@ -309,7 +309,7 @@ c_end:
309 309
310 EINA_LIST_FOREACH(updates, l, rect) 310 EINA_LIST_FOREACH(updates, l, rect)
311 { 311 {
312 fprintf(stdout, "Rectangle (%d, %d, %d, %d) on canvas got a" 312 printf("Rectangle (%d, %d, %d, %d) on canvas got a"
313 " rendering update.\n", rect->x, rect->y, 313 " rendering update.\n", rect->x, rect->y,
314 rect->w, 314 rect->w,
315 rect->h); 315 rect->h);
diff --git a/src/examples/evas/evas-hints.c b/src/examples/evas/evas-hints.c
index 8bc7455..c9480e4 100644
--- a/src/examples/evas/evas-hints.c
+++ b/src/examples/evas/evas-hints.c
@@ -114,20 +114,20 @@ _print_rect_stats(Evas_Object *rect)
114 double x, y; 114 double x, y;
115 115
116 evas_object_size_hint_align_get(rect, &x, &y); 116 evas_object_size_hint_align_get(rect, &x, &y);
117 fprintf(stdout, "\talign hints: h(%f), v(%f)\n", x, y); 117 printf("\talign hints: h(%f), v(%f)\n", x, y);
118 118
119 efl_gfx_size_hint_combined_min_get(rect, &w, &h); 119 efl_gfx_size_hint_combined_min_get(rect, &w, &h);
120 fprintf(stdout, "\tmin. size hints: h(%d), v(%d)\n", w, h); 120 printf("\tmin. size hints: h(%d), v(%d)\n", w, h);
121 121
122 evas_object_size_hint_max_get(rect, &w, &h); 122 evas_object_size_hint_max_get(rect, &w, &h);
123 fprintf(stdout, "\tmax. size hints: h(%d), v(%d)\n", w, h); 123 printf("\tmax. size hints: h(%d), v(%d)\n", w, h);
124 124
125 evas_object_size_hint_padding_get(rect, &l, &r, &t, &b); 125 evas_object_size_hint_padding_get(rect, &l, &r, &t, &b);
126 fprintf(stdout, "\tpadding hints: l(%d), r(%d), t(%d), b(%d)\n", 126 printf("\tpadding hints: l(%d), r(%d), t(%d), b(%d)\n",
127 l, r, t, b); 127 l, r, t, b);
128 128
129 evas_object_size_hint_weight_get(rect, &x, &y); 129 evas_object_size_hint_weight_get(rect, &x, &y);
130 fprintf(stdout, "\tweight hints: h(%f), v(%f)\n", x, y); 130 printf("\tweight hints: h(%f), v(%f)\n", x, y);
131} 131}
132 132
133/* use the following commands to interact with this example - 'h' is 133/* use the following commands to interact with this example - 'h' is
@@ -159,17 +159,17 @@ _on_keydown(void *data EINA_UNUSED,
159 } 159 }
160 else if (strcmp(ev->key, "h") == 0) /* print help */ 160 else if (strcmp(ev->key, "h") == 0) /* print help */
161 { 161 {
162 fprintf(stdout, commands); 162 printf(commands);
163 return; 163 return;
164 } 164 }
165 else if (strcmp(ev->key, "s") == 0) /* get aspect status of the 165 else if (strcmp(ev->key, "s") == 0) /* get aspect status of the
166 * rectangles WRT size 166 * rectangles WRT size
167 * hints */ 167 * hints */
168 { 168 {
169 fprintf(stdout, "Top rectangle:\n"); 169 printf("Top rectangle:\n");
170 _print_rect_stats(d.t_rect); 170 _print_rect_stats(d.t_rect);
171 171
172 fprintf(stdout, "\nBottom rectangle:\n"); 172 printf("\nBottom rectangle:\n");
173 _print_rect_stats(d.b_rect); 173 _print_rect_stats(d.b_rect);
174 174
175 return; 175 return;
@@ -189,7 +189,7 @@ _on_keydown(void *data EINA_UNUSED,
189 evas_object_size_hint_align_set( 189 evas_object_size_hint_align_set(
190 rect, r_data->align_ptr->x, r_data->align_ptr->y); 190 rect, r_data->align_ptr->x, r_data->align_ptr->y);
191 191
192 fprintf(stdout, "Changing align hints for %s rect. to (%f, %f)\n", 192 printf("Changing align hints for %s rect. to (%f, %f)\n",
193 name, r_data->align_ptr->x, r_data->align_ptr->y); 193 name, r_data->align_ptr->x, r_data->align_ptr->y);
194 return; 194 return;
195 } 195 }
@@ -206,7 +206,7 @@ _on_keydown(void *data EINA_UNUSED,
206 evas_object_size_hint_min_set( 206 evas_object_size_hint_min_set(
207 rect, r_data->min_ptr->w, r_data->min_ptr->h); 207 rect, r_data->min_ptr->w, r_data->min_ptr->h);
208 208
209 fprintf(stdout, "Changing min. size hints for %s rect. to (%d, %d)\n", 209 printf("Changing min. size hints for %s rect. to (%d, %d)\n",
210 name, r_data->min_ptr->w, r_data->min_ptr->h); 210 name, r_data->min_ptr->w, r_data->min_ptr->h);
211 return; 211 return;
212 } 212 }
@@ -223,7 +223,7 @@ _on_keydown(void *data EINA_UNUSED,
223 evas_object_size_hint_max_set( 223 evas_object_size_hint_max_set(
224 rect, r_data->max_ptr->w, r_data->max_ptr->h); 224 rect, r_data->max_ptr->w, r_data->max_ptr->h);
225 225
226 fprintf(stdout, "Changing max. size hints for %s rect. to (%d, %d)\n", 226 printf("Changing max. size hints for %s rect. to (%d, %d)\n",
227 name, r_data->max_ptr->w, r_data->max_ptr->h); 227 name, r_data->max_ptr->w, r_data->max_ptr->h);
228 return; 228 return;
229 } 229 }
@@ -241,7 +241,7 @@ _on_keydown(void *data EINA_UNUSED,
241 rect, r_data->padding_ptr->l, r_data->padding_ptr->r, 241 rect, r_data->padding_ptr->l, r_data->padding_ptr->r,
242 r_data->padding_ptr->t, r_data->padding_ptr->b); 242 r_data->padding_ptr->t, r_data->padding_ptr->b);
243 243
244 fprintf(stdout, "Changing padding size hints for %s rect." 244 printf("Changing padding size hints for %s rect."
245 " to (%d, %d, %d, %d)\n", 245 " to (%d, %d, %d, %d)\n",
246 name, r_data->padding_ptr->l, r_data->padding_ptr->r, 246 name, r_data->padding_ptr->l, r_data->padding_ptr->r,
247 r_data->padding_ptr->t, r_data->padding_ptr->b); 247 r_data->padding_ptr->t, r_data->padding_ptr->b);
@@ -263,7 +263,7 @@ _on_keydown(void *data EINA_UNUSED,
263 evas_object_size_hint_weight_set( 263 evas_object_size_hint_weight_set(
264 rect, r_data->weight_ptr->x, r_data->weight_ptr->y); 264 rect, r_data->weight_ptr->x, r_data->weight_ptr->y);
265 265
266 fprintf(stdout, "Changing weight hints for %s rect. to (%f, %f)\n", 266 printf("Changing weight hints for %s rect. to (%f, %f)\n",
267 name, r_data->weight_ptr->x, r_data->weight_ptr->y); 267 name, r_data->weight_ptr->x, r_data->weight_ptr->y);
268 return; 268 return;
269 } 269 }
@@ -364,7 +364,7 @@ main(void)
364 364
365 _canvas_resize_cb(d.ee); 365 _canvas_resize_cb(d.ee);
366 366
367 fprintf(stdout, commands); 367 printf(commands);
368 ecore_main_loop_begin(); 368 ecore_main_loop_begin();
369 ecore_evas_shutdown(); 369 ecore_evas_shutdown();
370 return 0; 370 return 0;
diff --git a/src/examples/evas/evas-images.c b/src/examples/evas/evas-images.c
index da78ba4..c20d250 100644
--- a/src/examples/evas/evas-images.c
+++ b/src/examples/evas/evas-images.c
@@ -108,7 +108,7 @@ _on_keydown(void *data EINA_UNUSED,
108 108
109 evas_object_image_smooth_scale_set(d.border, !smooth_scale); 109 evas_object_image_smooth_scale_set(d.border, !smooth_scale);
110 110
111 fprintf(stdout, "Image's border is now %s smooth scaling\n", 111 printf("Image's border is now %s smooth scaling\n",
112 smooth_scale ? "without" : "with"); 112 smooth_scale ? "without" : "with");
113 113
114 return; 114 return;
@@ -127,7 +127,7 @@ _on_keydown(void *data EINA_UNUSED,
127 127
128 evas_object_image_border_set(d.border, l, r, t, b); 128 evas_object_image_border_set(d.border, l, r, t, b);
129 129
130 fprintf(stdout, "Image's border thickness is now %d\n", l); 130 printf("Image's border thickness is now %d\n", l);
131 131
132 return; 132 return;
133 } 133 }
@@ -141,7 +141,7 @@ _on_keydown(void *data EINA_UNUSED,
141 141
142 evas_object_image_border_scale_set(d.border, scale); 142 evas_object_image_border_scale_set(d.border, scale);
143 143
144 fprintf(stdout, "Image's border scaling factor is now %f\n", scale); 144 printf("Image's border scaling factor is now %f\n", scale);
145 145
146 return; 146 return;
147 } 147 }
@@ -156,7 +156,7 @@ _on_keydown(void *data EINA_UNUSED,
156 156
157 evas_object_image_border_center_fill_set(d.border, fill); 157 evas_object_image_border_center_fill_set(d.border, fill);
158 158
159 fprintf(stdout, "Image's border center region aspect is now \"%s\"\n", 159 printf("Image's border center region aspect is now \"%s\"\n",
160 _border_fill_mode_to_str(fill)); 160 _border_fill_mode_to_str(fill));
161 161
162 return; 162 return;
@@ -168,7 +168,7 @@ _on_keydown(void *data EINA_UNUSED,
168 168
169 evas_object_image_alpha_set(d.img1, !alpha); 169 evas_object_image_alpha_set(d.img1, !alpha);
170 170
171 fprintf(stdout, "Image's alpha channel is now %s\n", 171 printf("Image's alpha channel is now %s\n",
172 alpha ? "off" : "on"); 172 alpha ? "off" : "on");
173 173
174 return; 174 return;
@@ -180,7 +180,7 @@ _on_keydown(void *data EINA_UNUSED,
180 180
181 evas_object_image_filled_set(d.img1, !filled); 181 evas_object_image_filled_set(d.img1, !filled);
182 182
183 fprintf(stdout, "Image's x filled property is now %s\n", 183 printf("Image's x filled property is now %s\n",
184 filled ? "off" : "on"); 184 filled ? "off" : "on");
185 185
186 return; 186 return;
@@ -194,7 +194,7 @@ _on_keydown(void *data EINA_UNUSED,
194 x = (x + 20) % (WIDTH / 2); 194 x = (x + 20) % (WIDTH / 2);
195 evas_object_image_fill_set(d.img1, x, y, w, h); 195 evas_object_image_fill_set(d.img1, x, y, w, h);
196 196
197 fprintf(stdout, "Image's x fill coordinate changed to %d\n", x); 197 printf("Image's x fill coordinate changed to %d\n", x);
198 198
199 return; 199 return;
200 } 200 }
@@ -207,7 +207,7 @@ _on_keydown(void *data EINA_UNUSED,
207 y = (y + 20) % (HEIGHT / 2); 207 y = (y + 20) % (HEIGHT / 2);
208 evas_object_image_fill_set(d.img1, x, y, w, h); 208 evas_object_image_fill_set(d.img1, x, y, w, h);
209 209
210 fprintf(stdout, "Image's y fill coordinate changed to %d\n", y); 210 printf("Image's y fill coordinate changed to %d\n", y);
211 211
212 return; 212 return;
213 } 213 }
@@ -222,7 +222,7 @@ _on_keydown(void *data EINA_UNUSED,
222 else w = (WIDTH / 4); 222 else w = (WIDTH / 4);
223 evas_object_image_fill_set(d.img1, x, y, w, h); 223 evas_object_image_fill_set(d.img1, x, y, w, h);
224 224
225 fprintf(stdout, "Image's w fill size changed to %d\n", w); 225 printf("Image's w fill size changed to %d\n", w);
226 226
227 return; 227 return;
228 } 228 }
@@ -237,7 +237,7 @@ _on_keydown(void *data EINA_UNUSED,
237 else h = (HEIGHT / 4); 237 else h = (HEIGHT / 4);
238 evas_object_image_fill_set(d.img1, x, y, w, h); 238 evas_object_image_fill_set(d.img1, x, y, w, h);
239 239
240 fprintf(stdout, "Image's h fill size changed to %d\n", h); 240 printf("Image's h fill size changed to %d\n", h);
241 241
242 return; 242 return;
243 } 243 }
@@ -248,7 +248,7 @@ _on_keydown(void *data EINA_UNUSED,
248 248
249 evas_object_image_fill_get(d.img1, &x, &y, &w, &h); 249 evas_object_image_fill_get(d.img1, &x, &y, &w, &h);
250 250
251 fprintf(stdout, "Image has fill properties set to: %d, %d, %d, %d\n", 251 printf("Image has fill properties set to: %d, %d, %d, %d\n",
252 x, y, w, h); 252 x, y, w, h);
253 253
254 return; 254 return;
@@ -292,7 +292,7 @@ main(void)
292 } 292 }
293 else 293 else
294 { 294 {
295 fprintf(stdout, 295 printf(
296 "loaded image '%s' with succes! error string is \"%s\"\n", 296 "loaded image '%s' with succes! error string is \"%s\"\n",
297 valid_path, evas_load_error_str(err)); 297 valid_path, evas_load_error_str(err));
298 298
diff --git a/src/examples/evas/evas-images2.c b/src/examples/evas/evas-images2.c
index b5f1956..58ffc37 100644
--- a/src/examples/evas/evas-images2.c
+++ b/src/examples/evas/evas-images2.c
@@ -133,7 +133,7 @@ _on_preloaded(void *data EINA_UNUSED,
133 Evas_Object *obj EINA_UNUSED, 133 Evas_Object *obj EINA_UNUSED,
134 void *event_info EINA_UNUSED) 134 void *event_info EINA_UNUSED)
135{ 135{
136 fprintf(stdout, "Image has been pre-loaded!\n"); 136 printf("Image has been pre-loaded!\n");
137} 137}
138 138
139static void 139static void
@@ -171,7 +171,7 @@ _on_keydown(void *data EINA_UNUSED,
171 { 171 {
172 int stride = evas_object_image_stride_get(d.noise_img); 172 int stride = evas_object_image_stride_get(d.noise_img);
173 173
174 fprintf(stdout, "Image has row stride value of %d, which accounts" 174 printf("Image has row stride value of %d, which accounts"
175 " for %d pixels\n", stride, stride / 4); 175 " for %d pixels\n", stride, stride / 4);
176 176
177 return; 177 return;
@@ -187,7 +187,7 @@ _on_keydown(void *data EINA_UNUSED,
187 187
188 evas_object_image_source_set(d.proxy_img, source); 188 evas_object_image_source_set(d.proxy_img, source);
189 189
190 fprintf(stdout, "Proxy image's source changed\n"); 190 printf("Proxy image's source changed\n");
191 191
192 return; 192 return;
193 } 193 }
@@ -198,7 +198,7 @@ _on_keydown(void *data EINA_UNUSED,
198 fprintf(stderr, "Cannot save image to '%s' (flags '%s')\n", 198 fprintf(stderr, "Cannot save image to '%s' (flags '%s')\n",
199 file_path, quality_str); 199 file_path, quality_str);
200 else 200 else
201 fprintf(stdout, "Image saved to '%s' (flags '%s'), check it out with " 201 printf("Image saved to '%s' (flags '%s'), check it out with "
202 "an image viewer\n", file_path, quality_str); 202 "an image viewer\n", file_path, quality_str);
203 203
204 return; 204 return;
@@ -286,7 +286,7 @@ main(void)
286 evas_object_move(d.noise_img, (WIDTH * 5) / 8, HEIGHT / 8); 286 evas_object_move(d.noise_img, (WIDTH * 5) / 8, HEIGHT / 8);
287 evas_object_resize(d.noise_img, WIDTH / 4, HEIGHT / 4); 287 evas_object_resize(d.noise_img, WIDTH / 4, HEIGHT / 4);
288 evas_object_show(d.noise_img); 288 evas_object_show(d.noise_img);
289 fprintf(stdout, "Creating noise image with size %d, %d\n", 289 printf("Creating noise image with size %d, %d\n",
290 WIDTH / 4, HEIGHT / 4); 290 WIDTH / 4, HEIGHT / 4);
291 291
292 d.text_obj = evas_object_textblock_add(d.evas); 292 d.text_obj = evas_object_textblock_add(d.evas);
diff --git a/src/examples/evas/evas-images4.c b/src/examples/evas/evas-images4.c
index 26b116f..56c9f57 100644
--- a/src/examples/evas/evas-images4.c
+++ b/src/examples/evas/evas-images4.c
@@ -89,7 +89,7 @@ _on_keydown(void *data EINA_UNUSED,
89 fprintf(stderr, "Cannot save image to '%s' (flags '%s')\n", 89 fprintf(stderr, "Cannot save image to '%s' (flags '%s')\n",
90 file_path, quality_str); 90 file_path, quality_str);
91 else 91 else
92 fprintf(stdout, "Image saved to '%s' (flags '%s'), check it out with " 92 printf("Image saved to '%s' (flags '%s'), check it out with "
93 "an image viewer\n", file_path, quality_str); 93 "an image viewer\n", file_path, quality_str);
94 94
95 return; 95 return;
@@ -100,7 +100,7 @@ _on_keydown(void *data EINA_UNUSED,
100 Evas_Coord w, h; 100 Evas_Coord w, h;
101 101
102 evas_object_image_size_get(d.img, &w, &h); 102 evas_object_image_size_get(d.img, &w, &h);
103 fprintf(stdout, "Image has size set to: w=%d, h=%d\n", w, h); 103 printf("Image has size set to: w=%d, h=%d\n", w, h);
104 return; 104 return;
105 } 105 }
106 106
@@ -108,7 +108,7 @@ _on_keydown(void *data EINA_UNUSED,
108 if (key_val >= 0 && key_val <= 7) 108 if (key_val >= 0 && key_val <= 7)
109 { 109 {
110 evas_object_image_orient_set(d.img, key_val); 110 evas_object_image_orient_set(d.img, key_val);
111 fprintf(stdout, "Set %i and got %i\n", key_val, 111 printf("Set %i and got %i\n", key_val,
112 evas_object_image_orient_get(d.img)); 112 evas_object_image_orient_get(d.img));
113 113
114 return; 114 return;
@@ -152,7 +152,7 @@ main(void)
152 } 152 }
153 else 153 else
154 { 154 {
155 fprintf(stdout, 155 printf(
156 "loaded image '%s' with succes! error string is \"%s\"\n", 156 "loaded image '%s' with succes! error string is \"%s\"\n",
157 img_path, evas_load_error_str(err)); 157 img_path, evas_load_error_str(err));
158 158
diff --git a/src/examples/evas/evas-images5.c b/src/examples/evas/evas-images5.c
index 036c896..7980822 100644
--- a/src/examples/evas/evas-images5.c
+++ b/src/examples/evas/evas-images5.c
@@ -90,7 +90,7 @@ _on_keydown(void *data EINA_UNUSED,
90 fprintf(stderr, "Cannot save image to '%s' (flags '%s')\n", 90 fprintf(stderr, "Cannot save image to '%s' (flags '%s')\n",
91 file_path, quality_str); 91 file_path, quality_str);
92 else 92 else
93 fprintf(stdout, "Image saved to '%s' (flags '%s'), check it out with " 93 printf("Image saved to '%s' (flags '%s'), check it out with "
94 "an image viewer\n", file_path, quality_str); 94 "an image viewer\n", file_path, quality_str);
95 95
96 return; 96 return;
@@ -101,7 +101,7 @@ _on_keydown(void *data EINA_UNUSED,
101 Evas_Coord w, h; 101 Evas_Coord w, h;
102 102
103 evas_object_image_size_get(d.img, &w, &h); 103 evas_object_image_size_get(d.img, &w, &h);
104 fprintf(stdout, "Image has size set to: w=%d, h=%d\n", w, h); 104 printf("Image has size set to: w=%d, h=%d\n", w, h);
105 return; 105 return;
106 } 106 }
107 107
@@ -170,7 +170,7 @@ main(void)
170 } 170 }
171 else 171 else
172 { 172 {
173 fprintf(stdout, 173 printf(
174 "loaded image '%s' with succes! error string is \"%s\"\n", 174 "loaded image '%s' with succes! error string is \"%s\"\n",
175 img_path, evas_load_error_str(err)); 175 img_path, evas_load_error_str(err));
176 176
diff --git a/src/examples/evas/evas-multiseat-events.c b/src/examples/evas/evas-multiseat-events.c
index 69125b2..cc34322 100644
--- a/src/examples/evas/evas-multiseat-events.c
+++ b/src/examples/evas/evas-multiseat-events.c
@@ -36,7 +36,7 @@ _canvas_focus_in_cb(void *data EINA_UNUSED, const Efl_Event *event)
36 seat = efl_input_device_get(ev); 36 seat = efl_input_device_get(ev);
37 focused = efl_input_focus_object_get(ev); 37 focused = efl_input_focus_object_get(ev);
38 38
39 fprintf(stdout, "Object %s was focused by seat %s\n", 39 printf("Object %s was focused by seat %s\n",
40 evas_object_name_get(focused), 40 evas_object_name_get(focused),
41 efl_input_device_name_get(seat)); 41 efl_input_device_name_get(seat));
42} 42}
@@ -50,7 +50,7 @@ _hold_cb(void *data EINA_UNUSED, const Efl_Event *event)
50 ev = event->info; 50 ev = event->info;
51 seat = efl_input_device_seat_get(efl_input_device_get(ev)); 51 seat = efl_input_device_seat_get(efl_input_device_get(ev));
52 52
53 fprintf(stdout, "Hold %s at object %s from seat %s\n", 53 printf("Hold %s at object %s from seat %s\n",
54 efl_input_hold_get(ev) ? "on" : "off", 54 efl_input_hold_get(ev) ? "on" : "off",
55 evas_object_name_get(event->object), 55 evas_object_name_get(event->object),
56 efl_input_device_name_get(seat)); 56 efl_input_device_name_get(seat));
@@ -65,7 +65,7 @@ _focus_cb(void *data EINA_UNUSED, const Efl_Event *event)
65 ev = event->info; 65 ev = event->info;
66 seat = efl_input_device_get(ev); 66 seat = efl_input_device_get(ev);
67 67
68 fprintf(stdout, "Focus %s at object %s from seat %s\n", 68 printf("Focus %s at object %s from seat %s\n",
69 event->desc == EFL_EVENT_FOCUS_IN ? "in" : "out", 69 event->desc == EFL_EVENT_FOCUS_IN ? "in" : "out",
70 evas_object_name_get(event->object), 70 evas_object_name_get(event->object),
71 efl_input_device_name_get(seat)); 71 efl_input_device_name_get(seat));
@@ -80,7 +80,7 @@ _pointer_in_out_cb(void *data EINA_UNUSED, const Efl_Event *event)
80 ev = event->info; 80 ev = event->info;
81 seat = efl_input_device_seat_get(efl_input_device_get(ev)); 81 seat = efl_input_device_seat_get(efl_input_device_get(ev));
82 82
83 fprintf(stdout, "Pointer %s at object %s from seat %s\n", 83 printf("Pointer %s at object %s from seat %s\n",
84 event->desc == EFL_EVENT_POINTER_IN ? "in" : "out", 84 event->desc == EFL_EVENT_POINTER_IN ? "in" : "out",
85 evas_object_name_get(event->object), 85 evas_object_name_get(event->object),
86 efl_input_device_name_get(seat)); 86 efl_input_device_name_get(seat));
@@ -111,7 +111,7 @@ _pointer_down_cb(void *data EINA_UNUSED, const Efl_Event *event)
111 efl_canvas_object_seat_focus_add(event->object, seat); 111 efl_canvas_object_seat_focus_add(event->object, seat);
112 } 112 }
113 113
114 fprintf(stdout, "%s at object %s from seat %s\n", buf, 114 printf("%s at object %s from seat %s\n", buf,
115 evas_object_name_get(event->object), 115 evas_object_name_get(event->object),
116 efl_input_device_name_get(seat)); 116 efl_input_device_name_get(seat));
117} 117}
@@ -125,7 +125,7 @@ _pointer_up_cb(void *data EINA_UNUSED, const Efl_Event *event)
125 ev = event->info; 125 ev = event->info;
126 seat = efl_input_device_seat_get(efl_input_device_get(ev)); 126 seat = efl_input_device_seat_get(efl_input_device_get(ev));
127 127
128 fprintf(stdout, "Pointer button %i up at object %s from seat %s\n", 128 printf("Pointer button %i up at object %s from seat %s\n",
129 efl_input_pointer_button_get(ev), 129 efl_input_pointer_button_get(ev),
130 evas_object_name_get(event->object), 130 evas_object_name_get(event->object),
131 efl_input_device_name_get(seat)); 131 efl_input_device_name_get(seat));
@@ -140,7 +140,7 @@ _pointer_move_cb(void *data EINA_UNUSED, const Efl_Event *event)
140 ev = event->info; 140 ev = event->info;
141 seat = efl_input_device_seat_get(efl_input_device_get(ev)); 141 seat = efl_input_device_seat_get(efl_input_device_get(ev));
142 142
143 fprintf(stdout, "Pointer moved to %1.f,%1.f at object %s from seat %s\n", 143 printf("Pointer moved to %1.f,%1.f at object %s from seat %s\n",
144 efl_input_pointer_value_get(ev, EFL_INPUT_VALUE_X), 144 efl_input_pointer_value_get(ev, EFL_INPUT_VALUE_X),
145 efl_input_pointer_value_get(ev, EFL_INPUT_VALUE_Y), 145 efl_input_pointer_value_get(ev, EFL_INPUT_VALUE_Y),
146 evas_object_name_get(event->object), 146 evas_object_name_get(event->object),
@@ -156,7 +156,7 @@ _pointer_wheel_cb(void *data EINA_UNUSED, const Efl_Event *event)
156 ev = event->info; 156 ev = event->info;
157 seat = efl_input_device_seat_get(efl_input_device_get(ev)); 157 seat = efl_input_device_seat_get(efl_input_device_get(ev));
158 158
159 fprintf(stdout, "Wheel: '%i,%i' on object %s from seat %s\n", 159 printf("Wheel: '%i,%i' on object %s from seat %s\n",
160 efl_input_pointer_wheel_direction_get(ev), 160 efl_input_pointer_wheel_direction_get(ev),
161 efl_input_pointer_wheel_delta_get(ev), 161 efl_input_pointer_wheel_delta_get(ev),
162 evas_object_name_get(event->object), 162 evas_object_name_get(event->object),
@@ -174,13 +174,13 @@ _key_down_cb(void *data EINA_UNUSED, const Efl_Event *event)
174 mods = evas_key_modifier_get(evas_object_evas_get(event->object)); 174 mods = evas_key_modifier_get(evas_object_evas_get(event->object));
175 seat = efl_input_device_seat_get(efl_input_device_get(ev)); 175 seat = efl_input_device_seat_get(efl_input_device_get(ev));
176 176
177 fprintf(stdout, "Key down: '%s' on object %s from seat %s\n", 177 printf("Key down: '%s' on object %s from seat %s\n",
178 efl_input_key_name_get(ev), 178 efl_input_key_name_get(ev),
179 evas_object_name_get(event->object), 179 evas_object_name_get(event->object),
180 efl_input_device_name_get(seat)); 180 efl_input_device_name_get(seat));
181 181
182 if (evas_seat_key_modifier_is_set(mods, "Control", seat)) 182 if (evas_seat_key_modifier_is_set(mods, "Control", seat))
183 fprintf(stdout, "Ctrl is pressed by seat %s\n", 183 printf("Ctrl is pressed by seat %s\n",
184 efl_input_device_name_get(seat)); 184 efl_input_device_name_get(seat));
185} 185}
186 186
@@ -193,7 +193,7 @@ _key_up_cb(void *data EINA_UNUSED, const Efl_Event *event)
193 ev = event->info; 193 ev = event->info;
194 seat = efl_input_device_seat_get(efl_input_device_get(ev)); 194 seat = efl_input_device_seat_get(efl_input_device_get(ev));
195 195
196 fprintf(stdout, "Key up: '%s' on object %s from seat %s\n", 196 printf("Key up: '%s' on object %s from seat %s\n",
197 efl_input_key_name_get(ev), 197 efl_input_key_name_get(ev),
198 evas_object_name_get(event->object), 198 evas_object_name_get(event->object),
199 efl_input_device_name_get(seat)); 199 efl_input_device_name_get(seat));
@@ -207,7 +207,7 @@ _dev_added_or_removed(void *data EINA_UNUSED, const Efl_Event *event)
207 if (efl_input_device_type_get(dev) != EFL_INPUT_DEVICE_CLASS_SEAT) 207 if (efl_input_device_type_get(dev) != EFL_INPUT_DEVICE_CLASS_SEAT)
208 return; 208 return;
209 209
210 fprintf(stdout, "The seat '%s' - description: '%s' was '%s'\n", 210 printf("The seat '%s' - description: '%s' was '%s'\n",
211 efl_input_device_name_get(dev), 211 efl_input_device_name_get(dev),
212 efl_input_device_description_get(dev), 212 efl_input_device_description_get(dev),
213 event->desc == EFL_CANVAS_EVENT_DEVICE_ADDED ? "added" : "removed"); 213 event->desc == EFL_CANVAS_EVENT_DEVICE_ADDED ? "added" : "removed");
@@ -280,7 +280,7 @@ main(void)
280 EINA_LIST_FOREACH(devices, l, dev) 280 EINA_LIST_FOREACH(devices, l, dev)
281 { 281 {
282 if (efl_input_device_type_get(dev) == EFL_INPUT_DEVICE_CLASS_SEAT) 282 if (efl_input_device_type_get(dev) == EFL_INPUT_DEVICE_CLASS_SEAT)
283 fprintf(stdout, "The seat '%s' - description: '%s' was 'added'\n", 283 printf("The seat '%s' - description: '%s' was 'added'\n",
284 efl_input_device_name_get(dev), 284 efl_input_device_name_get(dev),
285 efl_input_device_description_get(dev)); 285 efl_input_device_description_get(dev));
286 } 286 }
diff --git a/src/examples/evas/evas-object-manipulation-eo.c b/src/examples/evas/evas-object-manipulation-eo.c
index 035fb04..77d4df9 100644
--- a/src/examples/evas/evas-object-manipulation-eo.c
+++ b/src/examples/evas/evas-object-manipulation-eo.c
@@ -72,7 +72,7 @@ _on_keydown(void *data EINA_UNUSED,
72 72
73 if (strcmp(ev->key, "h") == 0) /* print help */ 73 if (strcmp(ev->key, "h") == 0) /* print help */
74 { 74 {
75 fprintf(stdout, "%s", commands); 75 printf("%s", commands);
76 return; 76 return;
77 } 77 }
78 78
@@ -90,7 +90,7 @@ _on_keydown(void *data EINA_UNUSED,
90 evas_color_argb_premul(alpha, &r, &g, &b); 90 evas_color_argb_premul(alpha, &r, &g, &b);
91 efl_gfx_color_set(d.clipper, r, g, b, alpha); 91 efl_gfx_color_set(d.clipper, r, g, b, alpha);
92 92
93 fprintf(stdout, "Changing clipper's opacity: %d%%\n", 93 printf("Changing clipper's opacity: %d%%\n",
94 (int)((alpha / 255.0) * 100)); 94 (int)((alpha / 255.0) * 100));
95 return; 95 return;
96 } 96 }
@@ -100,19 +100,19 @@ _on_keydown(void *data EINA_UNUSED,
100 { 100 {
101 int alpha, r, g, b; 101 int alpha, r, g, b;
102 102
103 fprintf(stdout, "Changing clipper's color to"); 103 printf("Changing clipper's color to");
104 104
105 efl_gfx_color_get(d.clipper, &r, &g, &b, &alpha); 105 efl_gfx_color_get(d.clipper, &r, &g, &b, &alpha);
106 evas_color_argb_unpremul(alpha, &r, &g, &b); 106 evas_color_argb_unpremul(alpha, &r, &g, &b);
107 107
108 if (g > 0) 108 if (g > 0)
109 { 109 {
110 fprintf(stdout, "red\n"); 110 printf("red\n");
111 g = b = 0; 111 g = b = 0;
112 } 112 }
113 else 113 else
114 { 114 {
115 fprintf(stdout, "white\n"); 115 printf("white\n");
116 g = b = 255; 116 g = b = 255;
117 } 117 }
118 118
@@ -123,19 +123,19 @@ _on_keydown(void *data EINA_UNUSED,
123 123
124 if (strcmp(ev->key, "c") == 0) /* toggle clipper's clipping function */ 124 if (strcmp(ev->key, "c") == 0) /* toggle clipper's clipping function */
125 { 125 {
126 fprintf(stdout, "Toggling clipping "); 126 printf("Toggling clipping ");
127 127
128 Evas_Object *clip = NULL; 128 Evas_Object *clip = NULL;
129 clip = efl_canvas_object_clip_get(d.img); 129 clip = efl_canvas_object_clip_get(d.img);
130 if (clip == d.clipper) 130 if (clip == d.clipper)
131 { 131 {
132 efl_canvas_object_clip_set(d.img, NULL); 132 efl_canvas_object_clip_set(d.img, NULL);
133 fprintf(stdout, "off\n"); 133 printf("off\n");
134 } 134 }
135 else 135 else
136 { 136 {
137 efl_canvas_object_clip_set(d.img, d.clipper); 137 efl_canvas_object_clip_set(d.img, d.clipper);
138 fprintf(stdout, "on\n"); 138 printf("on\n");
139 } 139 }
140 return; 140 return;
141 } 141 }
@@ -147,7 +147,7 @@ _on_keydown(void *data EINA_UNUSED,
147 * if you pass parameter to "set" by value. */ 147 * if you pass parameter to "set" by value. */
148 visibility = efl_gfx_visible_get(d.clipper); 148 visibility = efl_gfx_visible_get(d.clipper);
149 efl_gfx_visible_set(d.clipper, !visibility); 149 efl_gfx_visible_set(d.clipper, !visibility);
150 fprintf(stdout, "Clipper is now %s\n", visibility ? "hidden" : "visible"); 150 printf("Clipper is now %s\n", visibility ? "hidden" : "visible");
151 return; 151 return;
152 } 152 }
153} 153}
@@ -209,7 +209,7 @@ main(void)
209 efl_gfx_position_set(d.img, 0, 0); 209 efl_gfx_position_set(d.img, 0, 0);
210 efl_gfx_size_set(d.img, WIDTH, HEIGHT); 210 efl_gfx_size_set(d.img, WIDTH, HEIGHT);
211 efl_gfx_visible_set(d.img, EINA_TRUE); 211 efl_gfx_visible_set(d.img, EINA_TRUE);
212 fprintf(stdout, "Image object added, class name is: %s\n", 212 printf("Image object added, class name is: %s\n",
213 efl_class_name_get(d.img)); 213 efl_class_name_get(d.img));
214 } 214 }
215 215
@@ -241,7 +241,7 @@ main(void)
241 241
242 efl_canvas_object_clip_set(d.img, d.clipper); 242 efl_canvas_object_clip_set(d.img, d.clipper);
243 243
244 fprintf(stdout, "%s", commands); 244 printf("%s", commands);
245 245
246 ecore_main_loop_begin(); 246 ecore_main_loop_begin();
247 247
diff --git a/src/examples/evas/evas-object-manipulation.c b/src/examples/evas/evas-object-manipulation.c
index e6eaa18..48763db 100644
--- a/src/examples/evas/evas-object-manipulation.c
+++ b/src/examples/evas/evas-object-manipulation.c
@@ -58,7 +58,7 @@ _on_keydown(void *data EINA_UNUSED,
58 58
59 if (strcmp(ev->key, "h") == 0) /* print help */ 59 if (strcmp(ev->key, "h") == 0) /* print help */
60 { 60 {
61 fprintf(stdout, "commands are:\n" 61 printf("commands are:\n"
62 "\to - change clipper's opacity\n" 62 "\to - change clipper's opacity\n"
63 "\tr - toggle clipper's color between red and white\n" 63 "\tr - toggle clipper's color between red and white\n"
64 "\tc - toggle clipper's clipping function\n" 64 "\tc - toggle clipper's clipping function\n"
@@ -80,7 +80,7 @@ _on_keydown(void *data EINA_UNUSED,
80 evas_color_argb_premul(alpha, &r, &g, &b); 80 evas_color_argb_premul(alpha, &r, &g, &b);
81 evas_object_color_set(d.clipper, r, g, b, alpha); 81 evas_object_color_set(d.clipper, r, g, b, alpha);
82 82
83 fprintf(stdout, "Changing clipper's opacity: %d%%\n", 83 printf("Changing clipper's opacity: %d%%\n",
84 (int)((alpha / 255.0) * 100)); 84 (int)((alpha / 255.0) * 100));
85 return; 85 return;
86 } 86 }
@@ -90,19 +90,19 @@ _on_keydown(void *data EINA_UNUSED,
90 { 90 {
91 int alpha, r, g, b; 91 int alpha, r, g, b;
92 92
93 fprintf(stdout, "Changing clipper's color to"); 93 printf("Changing clipper's color to");
94 94
95 evas_object_color_get(d.clipper, &r, &g, &b, &alpha); 95 evas_object_color_get(d.clipper, &r, &g, &b, &alpha);
96 evas_color_argb_unpremul(alpha, &r, &g, &b); 96 evas_color_argb_unpremul(alpha, &r, &g, &b);
97 97
98 if (g > 0) 98 if (g > 0)
99 { 99 {
100 fprintf(stdout, "red\n"); 100 printf("red\n");
101 g = b = 0; 101 g = b = 0;
102 } 102 }
103 else 103 else
104 { 104 {
105 fprintf(stdout, "white\n"); 105 printf("white\n");
106 g = b = 255; 106 g = b = 255;
107 } 107 }
108 108
@@ -113,34 +113,34 @@ _on_keydown(void *data EINA_UNUSED,
113 113
114 if (strcmp(ev->key, "c") == 0) /* toggle clipper's clipping function */ 114 if (strcmp(ev->key, "c") == 0) /* toggle clipper's clipping function */
115 { 115 {
116 fprintf(stdout, "Toggling clipping "); 116 printf("Toggling clipping ");
117 117
118 if (evas_object_clip_get(d.img) == d.clipper) 118 if (evas_object_clip_get(d.img) == d.clipper)
119 { 119 {
120 evas_object_clip_unset(d.img); 120 evas_object_clip_unset(d.img);
121 fprintf(stdout, "off\n"); 121 printf("off\n");
122 } 122 }
123 else 123 else
124 { 124 {
125 evas_object_clip_set(d.img, d.clipper); 125 evas_object_clip_set(d.img, d.clipper);
126 fprintf(stdout, "on\n"); 126 printf("on\n");
127 } 127 }
128 return; 128 return;
129 } 129 }
130 130
131 if (strcmp(ev->key, "v") == 0) /* toggle clipper's visibility */ 131 if (strcmp(ev->key, "v") == 0) /* toggle clipper's visibility */
132 { 132 {
133 fprintf(stdout, "Clipper is now "); 133 printf("Clipper is now ");
134 134
135 if (evas_object_visible_get(d.clipper)) 135 if (evas_object_visible_get(d.clipper))
136 { 136 {
137 evas_object_hide(d.clipper); 137 evas_object_hide(d.clipper);
138 fprintf(stdout, "hidden\n"); 138 printf("hidden\n");
139 } 139 }
140 else 140 else
141 { 141 {
142 evas_object_show(d.clipper); 142 evas_object_show(d.clipper);
143 fprintf(stdout, "visible\n"); 143 printf("visible\n");
144 } 144 }
145 return; 145 return;
146 } 146 }
@@ -190,7 +190,7 @@ main(void)
190 evas_object_resize(d.img, WIDTH, HEIGHT); 190 evas_object_resize(d.img, WIDTH, HEIGHT);
191 evas_object_show(d.img); 191 evas_object_show(d.img);
192 192
193 fprintf(stdout, "Image object added, type is: %s\n", 193 printf("Image object added, type is: %s\n",
194 evas_object_type_get(d.img)); 194 evas_object_type_get(d.img));
195 } 195 }
196 196
diff --git a/src/examples/evas/evas-smart-interface.c b/src/examples/evas/evas-smart-interface.c
index b9a43fe..26f8082c 100644
--- a/src/examples/evas/evas-smart-interface.c
+++ b/src/examples/evas/evas-smart-interface.c
@@ -499,7 +499,7 @@ _on_keydown(void *data EINA_UNUSED,
499 499
500 if (strcmp(ev->key, "h") == 0) /* print help */ 500 if (strcmp(ev->key, "h") == 0) /* print help */
501 { 501 {
502 fprintf(stdout, commands); 502 printf(commands);
503 return; 503 return;
504 } 504 }
505 505
@@ -519,7 +519,7 @@ _on_keydown(void *data EINA_UNUSED,
519 519
520 memset(d.rects, 0, sizeof(d.rects)); 520 memset(d.rects, 0, sizeof(d.rects));
521 521
522 fprintf(stdout, "Deleting all members of the smart object.\n"); 522 printf("Deleting all members of the smart object.\n");
523 523
524 return; 524 return;
525 } 525 }
@@ -535,9 +535,9 @@ _on_keydown(void *data EINA_UNUSED,
535 prev = evas_smart_example_set_left(d.smt, rect); 535 prev = evas_smart_example_set_left(d.smt, rect);
536 d.rects[0] = rect; 536 d.rects[0] = rect;
537 537
538 fprintf(stdout, "Setting smart object's left spot with a new" 538 printf("Setting smart object's left spot with a new"
539 " rectangle.\n"); 539 " rectangle.\n");
540 fprintf(stdout, "Checking its new smart object parent: %s\n", 540 printf("Checking its new smart object parent: %s\n",
541 evas_object_smart_parent_get(rect) == d.smt ? "OK!" : 541 evas_object_smart_parent_get(rect) == d.smt ? "OK!" :
542 "Failure!"); 542 "Failure!");
543 if (prev) 543 if (prev)
@@ -545,7 +545,7 @@ _on_keydown(void *data EINA_UNUSED,
545 int r, g, b; 545 int r, g, b;
546 546
547 evas_object_color_get(prev, &r, &g, &b, NULL); 547 evas_object_color_get(prev, &r, &g, &b, NULL);
548 fprintf(stdout, "Deleting previous left child," 548 printf("Deleting previous left child,"
549 " which had colors (%d, %d, %d)\n", r, g, b); 549 " which had colors (%d, %d, %d)\n", r, g, b);
550 evas_object_del(prev); 550 evas_object_del(prev);
551 } 551 }
@@ -564,9 +564,9 @@ _on_keydown(void *data EINA_UNUSED,
564 prev = evas_smart_example_set_right(d.smt, rect); 564 prev = evas_smart_example_set_right(d.smt, rect);
565 d.rects[1] = rect; 565 d.rects[1] = rect;
566 566
567 fprintf(stdout, "Setting smart object's right spot with a new" 567 printf("Setting smart object's right spot with a new"
568 " rectangle.\n"); 568 " rectangle.\n");
569 fprintf(stdout, "Checking its new smart object parent: %s\n", 569 printf("Checking its new smart object parent: %s\n",
570 evas_object_smart_parent_get(rect) == d.smt ? "OK!" : 570 evas_object_smart_parent_get(rect) == d.smt ? "OK!" :
571 "Failure!"); 571 "Failure!");
572 if (prev) 572 if (prev)
@@ -574,7 +574,7 @@ _on_keydown(void *data EINA_UNUSED,
574 int r, g, b; 574 int r, g, b;
575 575
576 evas_object_color_get(prev, &r, &g, &b, NULL); 576 evas_object_color_get(prev, &r, &g, &b, NULL);
577 fprintf(stdout, "Deleting previous right child," 577 printf("Deleting previous right child,"
578 " which had colors (%d, %d, %d)\n", r, g, b); 578 " which had colors (%d, %d, %d)\n", r, g, b);
579 evas_object_del(prev); 579 evas_object_del(prev);
580 } 580 }
@@ -666,7 +666,7 @@ _on_example_smart_object_child_num_change(void *data EINA_UNUSED,
666 Evas_Object *obj EINA_UNUSED, 666 Evas_Object *obj EINA_UNUSED,
667 void *event_info) 667 void *event_info)
668{ 668{
669 fprintf(stdout, "Number of child members on our example smart" 669 printf("Number of child members on our example smart"
670 " object changed to %llu\n", (unsigned long long)(uintptr_t)event_info); 670 " object changed to %llu\n", (unsigned long long)(uintptr_t)event_info);
671} 671}
672 672
@@ -716,11 +716,11 @@ main(void)
716 evas_object_show(d.smt); 716 evas_object_show(d.smt);
717 717
718 ret = evas_object_smart_type_check(d.smt, _evas_smart_example_type); 718 ret = evas_object_smart_type_check(d.smt, _evas_smart_example_type);
719 fprintf(stdout, "Adding smart object of type \"%s\" to the canvas: %s.\n", 719 printf("Adding smart object of type \"%s\" to the canvas: %s.\n",
720 _evas_smart_example_type, ret ? "success" : "failure"); 720 _evas_smart_example_type, ret ? "success" : "failure");
721 721
722 d.clipper = evas_object_smart_clipped_clipper_get(d.smt); 722 d.clipper = evas_object_smart_clipped_clipper_get(d.smt);
723 fprintf(stdout, "Checking if clipped smart object's clipper is a " 723 printf("Checking if clipped smart object's clipper is a "
724 "\"static\" one: %s\n", evas_object_static_clip_get( 724 "\"static\" one: %s\n", evas_object_static_clip_get(
725 d.clipper) ? "yes" : "no"); 725 d.clipper) ? "yes" : "no");
726 726
@@ -733,7 +733,7 @@ main(void)
733 733
734 for (; *descriptions; descriptions++) 734 for (; *descriptions; descriptions++)
735 { 735 {
736 fprintf(stdout, "We've found a smart callback on the smart object!" 736 printf("We've found a smart callback on the smart object!"
737 "\n\tname: %s\n\ttype: %s\n", (*descriptions)->name, 737 "\n\tname: %s\n\ttype: %s\n", (*descriptions)->name,
738 (*descriptions)->type); 738 (*descriptions)->type);
739 739
@@ -759,19 +759,19 @@ main(void)
759 { 759 {
760 char *data; 760 char *data;
761 761
762 fprintf(stdout, "We've found a smart interface on the smart object!" 762 printf("We've found a smart interface on the smart object!"
763 "\n\tname: %s\n", iface->base.name); 763 "\n\tname: %s\n", iface->base.name);
764 764
765 fprintf(stdout, "Setting its interface data...\n"); 765 printf("Setting its interface data...\n");
766 data = evas_object_smart_interface_data_get 766 data = evas_object_smart_interface_data_get
767 (d.smt, (Evas_Smart_Interface *)iface); 767 (d.smt, (Evas_Smart_Interface *)iface);
768 memcpy(data, iface1_data, sizeof(iface1_data)); 768 memcpy(data, iface1_data, sizeof(iface1_data));
769 769
770 fprintf(stdout, "Calling an interface's function...\n"); 770 printf("Calling an interface's function...\n");
771 iface->example_func(d.smt); 771 iface->example_func(d.smt);
772 } 772 }
773 773
774 fprintf(stdout, commands); 774 printf(commands);
775 ecore_main_loop_begin(); 775 ecore_main_loop_begin();
776 776
777 ecore_evas_free(d.ee); 777 ecore_evas_free(d.ee);
diff --git a/src/examples/evas/evas-smart-object.c b/src/examples/evas/evas-smart-object.c
index d4aca26..a419570 100644
--- a/src/examples/evas/evas-smart-object.c
+++ b/src/examples/evas/evas-smart-object.c
@@ -471,7 +471,7 @@ _on_keydown(void *data EINA_UNUSED,
471 471
472 memset(d.rects, 0, sizeof(d.rects)); 472 memset(d.rects, 0, sizeof(d.rects));
473 473
474 fprintf(stdout, "Deleting all members of the smart object.\n"); 474 printf("Deleting all members of the smart object.\n");
475 475
476 return; 476 return;
477 } 477 }
@@ -487,9 +487,9 @@ _on_keydown(void *data EINA_UNUSED,
487 prev = evas_smart_example_set_left(d.smt, rect); 487 prev = evas_smart_example_set_left(d.smt, rect);
488 d.rects[0] = rect; 488 d.rects[0] = rect;
489 489
490 fprintf(stdout, "Setting smart object's left spot with a new" 490 printf("Setting smart object's left spot with a new"
491 " rectangle.\n"); 491 " rectangle.\n");
492 fprintf(stdout, "Checking its new smart object parent: %s\n", 492 printf("Checking its new smart object parent: %s\n",
493 evas_object_smart_parent_get(rect) == d.smt ? "OK!" : 493 evas_object_smart_parent_get(rect) == d.smt ? "OK!" :
494 "Failure!"); 494 "Failure!");
495 if (prev) 495 if (prev)
@@ -497,7 +497,7 @@ _on_keydown(void *data EINA_UNUSED,
497 int r, g, b; 497 int r, g, b;
498 498
499 evas_object_color_get(prev, &r, &g, &b, NULL); 499 evas_object_color_get(prev, &r, &g, &b, NULL);
500 fprintf(stdout, "Deleting previous left child," 500 printf("Deleting previous left child,"
501 " which had colors (%d, %d, %d)\n", r, g, b); 501 " which had colors (%d, %d, %d)\n", r, g, b);
502 evas_object_del(prev); 502 evas_object_del(prev);
503 } 503 }
@@ -516,9 +516,9 @@ _on_keydown(void *data EINA_UNUSED,
516 prev = evas_smart_example_set_right(d.smt, rect); 516 prev = evas_smart_example_set_right(d.smt, rect);
517 d.rects[1] = rect; 517 d.rects[1] = rect;
518 518
519 fprintf(stdout, "Setting smart object's right spot with a new" 519 printf("Setting smart object's right spot with a new"
520 " rectangle.\n"); 520 " rectangle.\n");
521 fprintf(stdout, "Checking its new smart object parent: %s\n", 521 printf("Checking its new smart object parent: %s\n",
522 evas_object_smart_parent_get(rect) == d.smt ? "OK!" : 522 evas_object_smart_parent_get(rect) == d.smt ? "OK!" :
523 "Failure!"); 523 "Failure!");
524 if (prev) 524 if (prev)
@@ -526,7 +526,7 @@ _on_keydown(void *data EINA_UNUSED,
526 int r, g, b; 526 int r, g, b;
527 527
528 evas_object_color_get(prev, &r, &g, &b, NULL); 528 evas_object_color_get(prev, &r, &g, &b, NULL);
529 fprintf(stdout, "Deleting previous right child," 529 printf("Deleting previous right child,"
530 " which had colors (%d, %d, %d)\n", r, g, b); 530 " which had colors (%d, %d, %d)\n", r, g, b);
531 evas_object_del(prev); 531 evas_object_del(prev);
532 } 532 }
@@ -638,7 +638,7 @@ _on_example_smart_object_child_num_change(void *data EINA_UNUSED,
638 Evas_Object *obj EINA_UNUSED, 638 Evas_Object *obj EINA_UNUSED,
639 void *event_info) 639 void *event_info)
640{ 640{
641 fprintf(stdout, "Number of child members on our example smart" 641 printf("Number of child members on our example smart"
642 " object changed to %llu\n", (unsigned long long)(uintptr_t)event_info); 642 " object changed to %llu\n", (unsigned long long)(uintptr_t)event_info);
643} 643}
644 644
@@ -679,11 +679,11 @@ main(void)
679 evas_object_show(d.smt); 679 evas_object_show(d.smt);
680 680
681 ret = evas_object_smart_type_check(d.smt, _evas_smart_example_type); 681 ret = evas_object_smart_type_check(d.smt, _evas_smart_example_type);
682 fprintf(stdout, "Adding smart object of type \"%s\" to the canvas: %s.\n", 682 printf("Adding smart object of type \"%s\" to the canvas: %s.\n",
683 _evas_smart_example_type, ret ? "success" : "failure"); 683 _evas_smart_example_type, ret ? "success" : "failure");
684 684
685 d.clipper = evas_object_smart_clipped_clipper_get(d.smt); 685 d.clipper = evas_object_smart_clipped_clipper_get(d.smt);
686 fprintf(stdout, "Checking if clipped smart object's clipper is a " 686 printf("Checking if clipped smart object's clipper is a "
687 "\"static\" one: %s\n", evas_object_static_clip_get( 687 "\"static\" one: %s\n", evas_object_static_clip_get(
688 d.clipper) ? "yes" : "no"); 688 d.clipper) ? "yes" : "no");
689 689
@@ -696,7 +696,7 @@ main(void)
696 696
697 for (; *descriptions; descriptions++) 697 for (; *descriptions; descriptions++)
698 { 698 {
699 fprintf(stdout, "We've found a smart callback on the smart object!" 699 printf("We've found a smart callback on the smart object!"
700 "\n\tname: %s\n\ttype: %s\n", (*descriptions)->name, 700 "\n\tname: %s\n\ttype: %s\n", (*descriptions)->name,
701 (*descriptions)->type); 701 (*descriptions)->type);
702 702
diff --git a/src/examples/evas/evas-stacking.c b/src/examples/evas/evas-stacking.c
index 18221cd..148393f 100644
--- a/src/examples/evas/evas-stacking.c
+++ b/src/examples/evas/evas-stacking.c
@@ -66,7 +66,7 @@ _on_mouse_down(void *data EINA_UNUSED,
66 Evas_Object *o, 66 Evas_Object *o,
67 void *einfo EINA_UNUSED) 67 void *einfo EINA_UNUSED)
68{ 68{
69 fprintf(stdout, "Mouse down on rectangle %s!\n", _name_get(o)); 69 printf("Mouse down on rectangle %s!\n", _name_get(o));
70} 70}
71 71
72/* here just to keep our example's window size and background image's 72/* here just to keep our example's window size and background image's
@@ -93,7 +93,7 @@ _on_keydown(void *data EINA_UNUSED,
93 93
94 if (strcmp(ev->key, "h") == 0) /* print help */ 94 if (strcmp(ev->key, "h") == 0) /* print help */
95 { 95 {
96 fprintf(stdout, commands); 96 printf(commands);
97 return; 97 return;
98 } 98 }
99 99
@@ -103,24 +103,24 @@ _on_keydown(void *data EINA_UNUSED,
103 { 103 {
104 Evas_Object *rect; 104 Evas_Object *rect;
105 105
106 fprintf(stdout, "Order of stacking, from top to bottom, is: "); 106 printf("Order of stacking, from top to bottom, is: ");
107 107
108 rect = evas_object_top_get(evas); 108 rect = evas_object_top_get(evas);
109 fprintf(stdout, "%s", _name_get(rect)); 109 printf("%s", _name_get(rect));
110 110
111 rect = evas_object_below_get(rect); 111 rect = evas_object_below_get(rect);
112 while (rect) 112 while (rect)
113 { 113 {
114 fprintf(stdout, ", %s", _name_get(rect)); 114 printf(", %s", _name_get(rect));
115 rect = evas_object_below_get(rect); 115 rect = evas_object_below_get(rect);
116 } 116 }
117 117
118 fprintf(stdout, ".\n"); 118 printf(".\n");
119 119
120 fprintf(stdout, "Current target rectangle is %s\n", 120 printf("Current target rectangle is %s\n",
121 _name_get(d.rects[d.cur_rect])); 121 _name_get(d.rects[d.cur_rect]));
122 122
123 fprintf(stdout, "Background rectangle's layer is %d\n", 123 printf("Background rectangle's layer is %d\n",
124 evas_object_layer_get(d.bg)); 124 evas_object_layer_get(d.bg));
125 125
126 return; 126 return;
@@ -131,7 +131,7 @@ _on_keydown(void *data EINA_UNUSED,
131 d.cur_layer = (d.cur_layer + 1) % 3; 131 d.cur_layer = (d.cur_layer + 1) % 3;
132 evas_object_layer_set(d.bg, d.layers[d.cur_layer]); 132 evas_object_layer_set(d.bg, d.layers[d.cur_layer]);
133 133
134 fprintf(stdout, "Changing background rectangle's layer to %d\n", 134 printf("Changing background rectangle's layer to %d\n",
135 d.layers[d.cur_layer]); 135 d.layers[d.cur_layer]);
136 return; 136 return;
137 } 137 }
@@ -140,7 +140,7 @@ _on_keydown(void *data EINA_UNUSED,
140 { 140 {
141 d.cur_rect = (d.cur_rect + 1) % 3; 141 d.cur_rect = (d.cur_rect + 1) % 3;
142 142
143 fprintf(stdout, "Changing target rectangle to the %s one\n", 143 printf("Changing target rectangle to the %s one\n",
144 _name_get(d.rects[d.cur_rect])); 144 _name_get(d.rects[d.cur_rect]));
145 return; 145 return;
146 } 146 }
@@ -151,11 +151,11 @@ _on_keydown(void *data EINA_UNUSED,
151 151
152 evas_object_raise(d.rects[d.cur_rect]); 152 evas_object_raise(d.rects[d.cur_rect]);
153 153
154 fprintf(stdout, "%s rectangle was re-stacked to the top if its layer\n", 154 printf("%s rectangle was re-stacked to the top if its layer\n",
155 name); 155 name);
156 156
157 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 157 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
158 fprintf(stdout, "Below of %s rect is %s\n", name, 158 printf("Below of %s rect is %s\n", name,
159 neighbour ? _name_get(neighbour) : "no object"); 159 neighbour ? _name_get(neighbour) : "no object");
160 return; 160 return;
161 } 161 }
@@ -166,12 +166,12 @@ _on_keydown(void *data EINA_UNUSED,
166 166
167 evas_object_lower(d.rects[d.cur_rect]); 167 evas_object_lower(d.rects[d.cur_rect]);
168 168
169 fprintf(stdout, 169 printf(
170 "%s rectangle was re-stacked to the bottom if its layer\n", 170 "%s rectangle was re-stacked to the bottom if its layer\n",
171 name); 171 name);
172 172
173 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 173 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
174 fprintf(stdout, "Below of %s rect is %s\n", name, 174 printf("Below of %s rect is %s\n", name,
175 neighbour ? _name_get(neighbour) : "no object"); 175 neighbour ? _name_get(neighbour) : "no object");
176 return; 176 return;
177 } 177 }
@@ -182,7 +182,7 @@ _on_keydown(void *data EINA_UNUSED,
182 182
183 evas_object_pass_events_set(d.rects[d.cur_rect], !pass); 183 evas_object_pass_events_set(d.rects[d.cur_rect], !pass);
184 184
185 fprintf(stdout, "%s rectangle is now set to%s pass (ignore) events\n", 185 printf("%s rectangle is now set to%s pass (ignore) events\n",
186 name, pass ? " NOT" : ""); 186 name, pass ? " NOT" : "");
187 187
188 return; 188 return;
@@ -194,7 +194,7 @@ _on_keydown(void *data EINA_UNUSED,
194 194
195 evas_object_repeat_events_set(d.rects[d.cur_rect], !repeat); 195 evas_object_repeat_events_set(d.rects[d.cur_rect], !repeat);
196 196
197 fprintf(stdout, "%s rectangle is now set to%s repeat events\n", 197 printf("%s rectangle is now set to%s repeat events\n",
198 name, repeat ? " NOT" : ""); 198 name, repeat ? " NOT" : "");
199 199
200 return; 200 return;
@@ -210,14 +210,14 @@ _on_keydown(void *data EINA_UNUSED,
210 210
211 evas_object_stack_above(d.rects[d.cur_rect], neighbour); 211 evas_object_stack_above(d.rects[d.cur_rect], neighbour);
212 212
213 fprintf(stdout, "%s rectangle was re-stacked one level above\n", name); 213 printf("%s rectangle was re-stacked one level above\n", name);
214 214
215 neighbour = evas_object_above_get(d.rects[d.cur_rect]); 215 neighbour = evas_object_above_get(d.rects[d.cur_rect]);
216 fprintf(stdout, "Above of %s rect is %s\n", name, 216 printf("Above of %s rect is %s\n", name,
217 neighbour ? _name_get(neighbour) : "no object"); 217 neighbour ? _name_get(neighbour) : "no object");
218 218
219 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 219 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
220 fprintf(stdout, "Below of %s rect is %s\n", name, 220 printf("Below of %s rect is %s\n", name,
221 neighbour ? _name_get(neighbour) : "no object"); 221 neighbour ? _name_get(neighbour) : "no object");
222 return; 222 return;
223 } 223 }
@@ -232,15 +232,15 @@ _on_keydown(void *data EINA_UNUSED,
232 232
233 evas_object_stack_below(d.rects[d.cur_rect], neighbour); 233 evas_object_stack_below(d.rects[d.cur_rect], neighbour);
234 234
235 fprintf(stdout, "%s rectangle was re-stacked one level below\n", name); 235 printf("%s rectangle was re-stacked one level below\n", name);
236 236
237 neighbour = evas_object_above_get(d.rects[d.cur_rect]); 237 neighbour = evas_object_above_get(d.rects[d.cur_rect]);
238 fprintf(stdout, "Above of %s rect is %s\n", name, 238 printf("Above of %s rect is %s\n", name,
239 neighbour ? _name_get(neighbour) : "no object"); 239 neighbour ? _name_get(neighbour) : "no object");
240 240
241 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 241 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
242 242
243 fprintf(stdout, "Below of %s rect is %s\n", name, 243 printf("Below of %s rect is %s\n", name,
244 neighbour ? _name_get(neighbour) : "no object"); 244 neighbour ? _name_get(neighbour) : "no object");
245 return; 245 return;
246 } 246 }
@@ -322,7 +322,7 @@ main(void)
322 evas_object_event_callback_add( 322 evas_object_event_callback_add(
323 d.rects[0], EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, NULL); 323 d.rects[0], EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, NULL);
324 324
325 fprintf(stdout, commands); 325 printf(commands);
326 ecore_main_loop_begin(); 326 ecore_main_loop_begin();
327 327
328 ecore_evas_shutdown(); 328 ecore_evas_shutdown();
diff --git a/src/examples/evas/evas-textblock-obstacles.c b/src/examples/evas/evas-textblock-obstacles.c
index babcfae..91f5d41 100644
--- a/src/examples/evas/evas-textblock-obstacles.c
+++ b/src/examples/evas/evas-textblock-obstacles.c
@@ -125,7 +125,7 @@ _on_keydown(void *data EINA_UNUSED,
125 125
126 if (strcmp(ev->key, "h") == 0) /* print help */ 126 if (strcmp(ev->key, "h") == 0) /* print help */
127 { 127 {
128 fprintf(stdout, commands); 128 printf(commands);
129 return; 129 return;
130 } 130 }
131 131
@@ -134,7 +134,7 @@ _on_keydown(void *data EINA_UNUSED,
134 (d.t_data.obs_ptr)++; 134 (d.t_data.obs_ptr)++;
135 POINTER_CYCLE(d.t_data.obs_ptr, d.t_data.obs); 135 POINTER_CYCLE(d.t_data.obs_ptr, d.t_data.obs);
136 136
137 fprintf(stdout, "Now controlling obstacle: %p\n", *d.t_data.obs_ptr); 137 printf("Now controlling obstacle: %p\n", *d.t_data.obs_ptr);
138 138
139 return; 139 return;
140 } 140 }
@@ -146,7 +146,7 @@ _on_keydown(void *data EINA_UNUSED,
146 evas_object_hide(obj); 146 evas_object_hide(obj);
147 else 147 else
148 evas_object_show(obj); 148 evas_object_show(obj);
149 fprintf(stdout, "Show/hide toggle for obstacle %p\n", 149 printf("Show/hide toggle for obstacle %p\n",
150 *d.t_data.obs_ptr); 150 *d.t_data.obs_ptr);
151 evas_object_textblock_obstacles_update(d.text); 151 evas_object_textblock_obstacles_update(d.text);
152 152
@@ -164,7 +164,7 @@ _on_keydown(void *data EINA_UNUSED,
164 164
165 evas_object_textblock_obstacles_update(d.text); 165 evas_object_textblock_obstacles_update(d.text);
166 166
167 fprintf(stdout, "Changing obstacle size to: %d,%d\n", *d.t_data.obs_size_ptr, *d.t_data.obs_size_ptr); 167 printf("Changing obstacle size to: %d,%d\n", *d.t_data.obs_size_ptr, *d.t_data.obs_size_ptr);
168 168
169 return; 169 return;
170 } 170 }
@@ -177,12 +177,12 @@ _on_keydown(void *data EINA_UNUSED,
177 evas_object_move(*d.t_data.obs_ptr, x, y); 177 evas_object_move(*d.t_data.obs_ptr, x, y);
178 evas_object_textblock_obstacles_update(d.text); 178 evas_object_textblock_obstacles_update(d.text);
179 179
180 fprintf(stdout, "Changing obstacles position\n"); 180 printf("Changing obstacles position\n");
181 evas_object_move(*d.t_data.obs_ptr, x, y); 181 evas_object_move(*d.t_data.obs_ptr, x, y);
182 evas_object_geometry_get(d.t_data.obs[0], &rx, &ry, NULL, NULL); 182 evas_object_geometry_get(d.t_data.obs[0], &rx, &ry, NULL, NULL);
183 evas_object_geometry_get(d.t_data.obs[1], &gx, &gy, NULL, NULL); 183 evas_object_geometry_get(d.t_data.obs[1], &gx, &gy, NULL, NULL);
184 fprintf(stdout, "Obstacle #1 (red) : [%d,%d]\n", rx, ry); 184 printf("Obstacle #1 (red) : [%d,%d]\n", rx, ry);
185 fprintf(stdout, "Obstacle #2 (green): [%d,%d]\n", gx, gy); 185 printf("Obstacle #2 (green): [%d,%d]\n", gx, gy);
186 186
187 return; 187 return;
188 } 188 }
@@ -190,7 +190,7 @@ _on_keydown(void *data EINA_UNUSED,
190 { 190 {
191 (d.t_data.wrap_ptr)++; 191 (d.t_data.wrap_ptr)++;
192 POINTER_CYCLE(d.t_data.wrap_ptr, d.t_data.wrap); 192 POINTER_CYCLE(d.t_data.wrap_ptr, d.t_data.wrap);
193 fprintf(stdout, "Changing wrap mode to: %s\n", *d.t_data.wrap_ptr); 193 printf("Changing wrap mode to: %s\n", *d.t_data.wrap_ptr);
194 _style_set(*d.t_data.wrap_ptr); 194 _style_set(*d.t_data.wrap_ptr);
195 evas_object_textblock_obstacles_update(d.text); 195 evas_object_textblock_obstacles_update(d.text);
196 196
@@ -293,7 +293,7 @@ main(void)
293 evas_object_show(d.t_data.obs[0]); 293 evas_object_show(d.t_data.obs[0]);
294 evas_object_show(d.t_data.obs[1]); 294 evas_object_show(d.t_data.obs[1]);
295 295
296 fprintf(stdout, commands); 296 printf(commands);
297 ecore_main_loop_begin(); 297 ecore_main_loop_begin();
298 298
299 evas_textblock_style_free(d.st); 299 evas_textblock_style_free(d.st);
diff --git a/src/examples/evas/evas-transparent.c b/src/examples/evas/evas-transparent.c
index 56dd752..720d20d 100644
--- a/src/examples/evas/evas-transparent.c
+++ b/src/examples/evas/evas-transparent.c
@@ -47,7 +47,7 @@ _on_keydown(void *data EINA_UNUSED,
47 47
48 if (strcmp(ev->key, "h") == 0) /* print help */ 48 if (strcmp(ev->key, "h") == 0) /* print help */
49 { 49 {
50 fprintf(stdout, "%s", commands); 50 printf("%s", commands);
51 return; 51 return;
52 } 52 }
53 53
@@ -55,7 +55,7 @@ _on_keydown(void *data EINA_UNUSED,
55 { 55 {
56 ecore_evas_alpha_set(d.ee, EINA_TRUE); 56 ecore_evas_alpha_set(d.ee, EINA_TRUE);
57 57
58 fprintf(stdout, "turn on alpha\n"); 58 printf("turn on alpha\n");
59 return; 59 return;
60 } 60 }
61 61
@@ -63,7 +63,7 @@ _on_keydown(void *data EINA_UNUSED,
63 { 63 {
64 ecore_evas_alpha_set(d.ee, EINA_FALSE); 64 ecore_evas_alpha_set(d.ee, EINA_FALSE);
65 65
66 fprintf(stdout, "turn off alpha\n"); 66 printf("turn off alpha\n");
67 return; 67 return;
68 } 68 }
69} 69}