examples: use printf instead of fprintf(stdout, ...)

Summary:
Applies same change as e8355c93 for evas, to the remaining examples.
This uses the shell command-line:

    src/examples/evas$ grep -sr 'fprintf(stdout' . | cut -d: -f1 \
        | uniq | xargs sed -i "s/fprintf(stdout/printf(/"

Note that use of the "fprintf(stdout" construct can generate warnings
when -Wformat-security is enabled, if the fprintf statement has no
format arguments, so in addition to the stylistic simplification this
also helps quell those spurious warnings.

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4836

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Bryce Harrington 2017-05-08 15:14:27 -07:00 committed by Cedric BAIL
parent 94509a3d86
commit 77e19c7194
29 changed files with 183 additions and 183 deletions

View File

@ -36,8 +36,8 @@ static void
_eet_raw_data_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply EINA_UNUSED, const char *protocol_name EINA_UNUSED, const char *section, void *value, size_t length EINA_UNUSED)
{
/* Only a perticular parameter's value is sent by Server. */
fprintf(stdout, "Section: %s\n", section);
fprintf(stdout, "Value: %s\n", (char *) value);
printf("Section: %s\n", section);
printf("Value: %s\n", (char *) value);
}
int main(int argc, const char *argv[])

View File

@ -43,7 +43,7 @@ _eet_data_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply, const char *protoco
char toSend[] = "Received your message.";// The message to send to client.
ECE_Example *received = value;// The message received from client.
fprintf(stdout, "id: %d\n message: %s\n not_sending: %s\n",
printf("id: %d\n message: %s\n not_sending: %s\n",
received->id, received->message, received->not_sending);
/* The not_sending would be empty as not_sending is not added in the
* descriptor. So that value is not sent.

View File

@ -70,7 +70,7 @@ _on_keydown(void *data EINA_UNUSED,
if (strcmp(ev->key, "h") == 0) /* print help */
{
fprintf(stdout, commands);
printf(commands);
return;
}
@ -81,13 +81,13 @@ _on_keydown(void *data EINA_UNUSED,
if (min_set)
{
ecore_evas_size_min_set(ee, WIDTH / 2, HEIGHT / 2);
fprintf(stdout, "Imposing a minimum size of %d x %d\n",
printf("Imposing a minimum size of %d x %d\n",
WIDTH / 2, HEIGHT / 2);
}
else
{
ecore_evas_size_min_set(ee, 0, 0);
fprintf(stdout, "Taking off minimum size restriction from the"
printf("Taking off minimum size restriction from the"
" window\n");
}
return;
@ -100,13 +100,13 @@ _on_keydown(void *data EINA_UNUSED,
if (max_set)
{
ecore_evas_size_max_set(ee, WIDTH * 2, HEIGHT * 2);
fprintf(stdout, "Imposing a maximum size of %d x %d\n",
printf("Imposing a maximum size of %d x %d\n",
WIDTH * 2, HEIGHT * 2);
}
else
{
ecore_evas_size_max_set(ee, 0, 0);
fprintf(stdout, "Taking off maximum size restriction from the"
printf("Taking off maximum size restriction from the"
" window\n");
}
return;
@ -119,13 +119,13 @@ _on_keydown(void *data EINA_UNUSED,
if (base_set)
{
ecore_evas_size_base_set(ee, WIDTH * 2, HEIGHT * 2);
fprintf(stdout, "Imposing a base size of %d x %d\n",
printf("Imposing a base size of %d x %d\n",
WIDTH * 2, HEIGHT * 2);
}
else
{
ecore_evas_size_base_set(ee, 0, 0);
fprintf(stdout, "Taking off base size restriction from the"
printf("Taking off base size restriction from the"
" window\n");
}
return;
@ -138,12 +138,12 @@ _on_keydown(void *data EINA_UNUSED,
if (step_set)
{
ecore_evas_size_step_set(ee, 40, 40);
fprintf(stdout, "Imposing a step size of %d x %d\n", 40, 40);
printf("Imposing a step size of %d x %d\n", 40, 40);
}
else
{
ecore_evas_size_step_set(ee, 0, 0);
fprintf(stdout, "Taking off step size restriction from the"
printf("Taking off step size restriction from the"
" window\n");
}
return;
@ -153,7 +153,7 @@ _on_keydown(void *data EINA_UNUSED,
{
int x, y, w, h;
ecore_evas_screen_geometry_get(ee, &x, &y, &w, &h);
fprintf(stdout, "screen geometry: %d,%d, %dx%d\n", x, y, w, h);
printf("screen geometry: %d,%d, %dx%d\n", x, y, w, h);
return;
}
}
@ -195,7 +195,7 @@ main(void)
evas_object_show(text);
_canvas_resize_cb(ee);
fprintf(stdout, commands);
printf(commands);
ecore_main_loop_begin();
ecore_evas_free(ee);

View File

@ -16,7 +16,7 @@ _msg_from_child_handler(void *data EINA_UNUSED, int type EINA_UNUSED, void *even
if (dataFromProcess->size >= (BUFFER_SIZE - 1))
{
fprintf(stdout, "Data too big for bugger. error\n");
printf("Data too big for bugger. error\n");
return ECORE_CALLBACK_DONE;
}
@ -25,11 +25,11 @@ _msg_from_child_handler(void *data EINA_UNUSED, int type EINA_UNUSED, void *even
if (strcmp(msg, "quit") == 0)
{
fprintf(stdout, "My child said to me, QUIT!\n");
printf("My child said to me, QUIT!\n");
ecore_main_loop_quit();
}
else
fprintf(stdout, "I received a message from my child: %s\n", msg);
printf("I received a message from my child: %s\n", msg);
return ECORE_CALLBACK_DONE;
}
@ -47,7 +47,7 @@ _sendMessage(void *data)
if (ecore_exe_send(childHandle, msg, strlen(msg)) != EINA_TRUE)
fprintf(stderr, "Could not send my name to the child\n");
else
fprintf(stdout,
printf(
"I'm the father and I sent this message to the child: %s\n", msg);
return ECORE_CALLBACK_RENEW;
@ -78,7 +78,7 @@ main(void)
if (childPid == -1)
fprintf(stderr, "Could not retrive the PID!\n");
else
fprintf(stdout, "The child process has PID:%u\n", (unsigned int)childPid);
printf("The child process has PID:%u\n", (unsigned int)childPid);
ecore_event_handler_add(ECORE_EXE_EVENT_DATA, _msg_from_child_handler, NULL);
ecore_timer_add(1, _sendMessage, childHandle);

View File

@ -21,13 +21,13 @@ _fd_handler_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *fd_handler EINA_UNUSED)
if (numberOfMessages < 3)
{
fprintf(stdout, "My father sent this message to me:%s\n", message);
printf("My father sent this message to me:%s\n", message);
fflush(stdout);
return ECORE_CALLBACK_RENEW;
}
else
{
fprintf(stdout, "quit\n");
printf("quit\n");
fflush(stdout);
ecore_main_loop_quit();
return ECORE_CALLBACK_DONE;

View File

@ -75,74 +75,74 @@ _on_key_down(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj, v
if (!strcmp(ev->key, "h"))
{
fprintf(stdout, commands);
printf(commands);
return;
}
else if (!strcmp(ev->key, "plus"))
{
frametime *= 2.0;
fprintf(stdout, "Increasing frametime to: %f\n", frametime);
printf("Increasing frametime to: %f\n", frametime);
edje_frametime_set(frametime);
}
else if (!strcmp(ev->key, "minus"))
{
frametime /= 2.0;
fprintf(stdout, "Decreasing frametime to: %f\n", frametime);
printf("Decreasing frametime to: %f\n", frametime);
edje_frametime_set(frametime);
}
else if (!strcmp(ev->key, "equal"))
{
ft = edje_frametime_get();
fprintf(stdout, "Frametime: %f\n", ft);
printf("Frametime: %f\n", ft);
if (edje_object_play_get(obj))
fprintf(stdout, "Object is playing\n");
printf("Object is playing\n");
else
fprintf(stdout, "Object was paused\n");
printf("Object was paused\n");
if (edje_object_animation_get(obj))
fprintf(stdout, "Animation is running\n");
printf("Animation is running\n");
else
fprintf(stdout, "Animation was stopped\n");
printf("Animation was stopped\n");
}
else if (!strcmp(ev->key, "s"))
{
edje_object_play_set(obj, EINA_FALSE);
fprintf(stdout, "Pausing the object\n");
printf("Pausing the object\n");
}
else if (!strcmp(ev->key, "p"))
{
edje_object_play_set(obj, EINA_TRUE);
fprintf(stdout, "Playing the object\n");
printf("Playing the object\n");
}
else if (!strcmp(ev->key, "f"))
fprintf(stdout, "Freezing object. Count: %d\n", edje_object_freeze(obj));
printf("Freezing object. Count: %d\n", edje_object_freeze(obj));
else if (!strcmp(ev->key, "t"))
fprintf(stdout, "Thawing object. Count: %d\n", edje_object_thaw(obj));
printf("Thawing object. Count: %d\n", edje_object_thaw(obj));
else if (!strcmp(ev->key, "F"))
{
edje_freeze();
fprintf(stdout, "Freezing all objects\n");
printf("Freezing all objects\n");
}
else if (!strcmp(ev->key, "T"))
{
edje_thaw();
fprintf(stdout, "Thawing all objects\n");
printf("Thawing all objects\n");
}
else if (!strcmp(ev->key, "a"))
{
edje_object_animation_set(obj, EINA_TRUE);
fprintf(stdout, "Starting the animation in the Edje object\n");
printf("Starting the animation in the Edje object\n");
}
else if (!strcmp(ev->key, "A"))
{
edje_object_animation_set(obj, EINA_FALSE);
fprintf(stdout, "Stopping the animation in the Edje object\n");
printf("Stopping the animation in the Edje object\n");
}
else if (!strcmp(ev->key, "Escape"))
ecore_main_loop_quit();
else
{
printf("unhandled key: %s\n", ev->key);
fprintf(stdout, commands);
printf(commands);
}
}
@ -191,7 +191,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
_on_key_down, NULL);
evas_object_focus_set(edje_obj, EINA_TRUE);
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -51,7 +51,7 @@ _on_keydown(void *data,
if (strcmp(ev->key, "h") == 0) /* print help */
{
fprintf(stdout, commands);
printf(commands);
return;
}
else if (strcmp(ev->key, "s") == 0) /* global scaling factor */
@ -65,7 +65,7 @@ _on_keydown(void *data,
edje_scale_set(scale);
fprintf(stdout, "Setting global scaling factor to %f.\n", scale);
printf("Setting global scaling factor to %f.\n", scale);
return;
}
@ -81,7 +81,7 @@ _on_keydown(void *data,
edje_object_scale_set(edje_obj, scale);
fprintf(stdout, "Setting center rectangle's scaling factor to %f.\n",
printf("Setting center rectangle's scaling factor to %f.\n",
scale);
return;
@ -91,7 +91,7 @@ _on_keydown(void *data,
else
{
printf("unhandled key: %s\n", ev->key);
fprintf(stdout, commands);
printf(commands);
}
}
@ -163,7 +163,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
goto shutdown_edje;
}
fprintf(stdout, "Loaded Edje object bound to group 'example_group' from"
printf("Loaded Edje object bound to group 'example_group' from"
" file basic.edj with success!\n");
evas_object_move(edje_obj, 20, 20);
@ -183,41 +183,41 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
evas_object_move(border, 20 - 2, 20 - 2);
evas_object_show(border);
fprintf(stdout, "'example_data' data field in group 'example_group' has "
printf("'example_data' data field in group 'example_group' has "
"the value: %s\n", edje_object_data_get(edje_obj,
"example_data"));
fprintf(stdout, "Testing if 'part_one' part exists: %s\n",
printf("Testing if 'part_one' part exists: %s\n",
edje_object_part_exists(edje_obj, "part_one") ? "yes!" : "no");
edje_object_part_geometry_get(edje_obj, "part_one", &x, &y, &w, &h);
fprintf(stdout, "The geometry of that part inside the Edje object's area "
printf("The geometry of that part inside the Edje object's area "
"is: x = %d, y = %d, w = %d, h = %d\n", x, y, w, h);
evas_object_color_get(edje_object_part_object_get(edje_obj, "part_one"),
&x, &y, &w, &h);
fprintf(stdout, "That part's color components are: r = %d, g = %d, b = %d,"
printf("That part's color components are: r = %d, g = %d, b = %d,"
" a = %d\n", x, y, w, h);
edje_object_size_max_get(edje_obj, &w, &h);
fprintf(stdout, "The Edje object's max. size is: %d, %d\n", w, h);
printf("The Edje object's max. size is: %d, %d\n", w, h);
edje_object_size_min_get(edje_obj, &w, &h);
fprintf(stdout, "The Edje object's min. size is: %d, %d\n", w, h);
printf("The Edje object's min. size is: %d, %d\n", w, h);
edje_object_size_min_calc(edje_obj, &w, &h);
fprintf(stdout, "The Edje object's min. size reported by min. size"
printf("The Edje object's min. size reported by min. size"
" calculation is: w = %d, h = %d\n", w, h);
edje_object_size_min_restricted_calc(edje_obj, &w, &h, 500, 500);
fprintf(stdout, "The Edje object's min. size reported by *restricted* "
printf("The Edje object's min. size reported by *restricted* "
"min. size calculation is: w = %d, h = %d\n", w, h);
edje_object_parts_extends_calc(edje_obj, &x, &y, &w, &h);
fprintf(stdout, "The Edje object's \"extended\" geometry is: x = %d, "
printf("The Edje object's \"extended\" geometry is: x = %d, "
"y = %d, w = %d, h = %d\n", x, y, w, h);
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -66,7 +66,7 @@ _on_key_down(void *data,
}
else
{
fprintf(stdout, "Key %s not supported.\nCommands:%s", ev->key, commands);
printf("Key %s not supported.\nCommands:%s", ev->key, commands);
return;
}
@ -130,7 +130,7 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
ecore_evas_show(ee);
fprintf(stdout, "%s", commands);
printf("%s", commands);
ecore_main_loop_begin();

View File

@ -113,7 +113,7 @@ _on_bg_key_down(void *data, Evas *e, Evas_Object *o EINA_UNUSED, void *event_inf
if (!strcmp(ev->key, "h"))
{
fprintf(stdout, commands);
printf(commands);
return;
}
if (!strcmp(ev->key, "i"))
@ -151,7 +151,7 @@ _on_bg_key_down(void *data, Evas *e, Evas_Object *o EINA_UNUSED, void *event_inf
else
{
printf("unhandled key: %s\n", ev->key);
fprintf(stdout, commands);
printf(commands);
}
}
@ -216,7 +216,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
rect, EVAS_CALLBACK_MOUSE_DOWN, _on_rect_mouse_down, ee);
}
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -87,7 +87,7 @@ on_keydown(void *data, Evas *evas, Evas_Object *o EINA_UNUSED, void *einfo)
mods = evas_key_modifier_get(evas);
if (!strcmp(ev->key, "h"))
{
fprintf(stdout, commands);
printf(commands);
return;
}
if (evas_key_modifier_is_set(mods, "Shift"))
@ -211,7 +211,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
}
}
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -54,7 +54,7 @@ _columns_rows_print(Evas_Object *edje_obj)
int cols, rows;
if (codegen_example_part_four_col_row_size_get(edje_obj, &cols, &rows))
fprintf(stdout, "Number of columns: %d\nNumber of rows: %d\n", cols, rows);
printf("Number of columns: %d\nNumber of rows: %d\n", cols, rows);
else
fprintf(stderr, "Cannot get the number of columns and rows\n");
}

View File

@ -71,25 +71,25 @@ _color_classes_print(void)
Eina_List *classes;
char *class_name;
fprintf(stdout, "Getting the color classes\n\n");
printf("Getting the color classes\n\n");
classes = edje_color_class_list();
EINA_LIST_FREE(classes, class_name)
{
int r1, r2, r3, g1, g2, g3, b1, b2, b3,
a1, a2, a3;
fprintf(stdout, "\ncolor class: %s\n", class_name);
printf("\ncolor class: %s\n", class_name);
if (!edje_color_class_get(class_name, &r1, &g1, &b1, &a1,
&r2, &g2, &b2, &a2, &r3, &g3, &b3, &a3))
fprintf(stderr, "Cannot get the color class\n");
else
{
fprintf(stdout,"Object color r: %d g: %d b: %d a: %d\n",
printf("Object color r: %d g: %d b: %d a: %d\n",
r1, g1, b1, a1);
fprintf(stdout,"Text outline color r: %d g: %d b: %d a: %d\n",
printf("Text outline color r: %d g: %d b: %d a: %d\n",
r2, g2, b2, a2);
fprintf(stdout,"Text shadow color r: %d g: %d b: %d a: %d\n",
printf("Text shadow color r: %d g: %d b: %d a: %d\n",
r3, g3, b3, a3);
}
free(class_name);
@ -142,9 +142,9 @@ _color_class_callback_delete(void *data, Evas *e EINA_UNUSED, Evas_Object *obj E
const char *emission, void *source EINA_UNUSED)
{
if (!strcmp(data, "process"))
fprintf(stdout, "Color class: %s deleted on process level\n", emission);
printf("Color class: %s deleted on process level\n", emission);
else
fprintf(stdout, "Color class: %s deleted on object level\n", emission);
printf("Color class: %s deleted on object level\n", emission);
}
static int

View File

@ -75,7 +75,7 @@ _on_bg_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, voi
if (!strcmp(ev->key, "h"))
{
fprintf(stdout, commands);
printf(commands);
return;
}
else if (!strcmp(ev->key, "Down"))
@ -103,7 +103,7 @@ _on_bg_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, voi
else
{
printf("unhandled key: %s\n", ev->key);
fprintf(stdout, commands);
printf(commands);
}
}
@ -171,7 +171,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
edje_object_signal_callback_add(edje_obj, "drag", PARTNAME, _on_knob_moved, NULL);
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -82,12 +82,12 @@ _on_bg_key_down(void *data EINA_UNUSED,
if (!strcmp(ev->key, "h"))
{
fprintf(stdout, commands);
printf(commands);
return;
}
if (!strcmp(ev->key, "p"))
{
fprintf(stdout, "SOURCE CODE:\n%s \n", edje_edit_source_generate(edje_edit_obj));
printf("SOURCE CODE:\n%s \n", edje_edit_source_generate(edje_edit_obj));
return;
}
if (!strcmp(ev->key, "n"))
@ -99,7 +99,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
if (align_x >= 1.0) align_x = 0.0;
if (align_y >= 1.0) align_y = 0.0;
fprintf(stdout, "Changing align to x[%f] y[%f] \n", align_x, align_y);
printf("Changing align to x[%f] y[%f] \n", align_x, align_y);
if (!edje_edit_part_item_index_align_x_set(edje_edit_obj, "green", 1, align_x))
fprintf(stderr, "Couldn't set align x for item x2, something is absolutely wrong!!!\n");
@ -108,7 +108,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
return;
}
@ -121,7 +121,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
if (weight_x >= 30.0) weight_x = 0.0;
if (weight_y >= 30.0) weight_y = 0.0;
fprintf(stdout, "Changing weight to x[%f] y[%f] \n", weight_x, weight_y);
printf("Changing weight to x[%f] y[%f] \n", weight_x, weight_y);
if (!edje_edit_part_item_index_weight_x_set(edje_edit_obj, "green", 1, weight_x))
fprintf(stderr, "Couldn't set weight x for item x2, something is absolutely wrong!!!\n");
@ -130,7 +130,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
return;
}
@ -145,14 +145,14 @@ _on_bg_key_down(void *data EINA_UNUSED,
if (t >= 32) t = 0;
if (b >= 32) b = 0;
fprintf(stdout, "Changing paddings. left[%d], right[%d], top[%d], bottom[%d]\n", l, r, t, b);
printf("Changing paddings. left[%d], right[%d], top[%d], bottom[%d]\n", l, r, t, b);
if (!edje_edit_part_item_index_padding_set(edje_edit_obj, "green", 1, l, r, t, b))
fprintf(stderr, "Couldn't set paddings for item x2, something is absolutely wrong!!!\n");
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
return;
}
@ -171,7 +171,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
spread_h = 1;
}
fprintf(stdout, "Changing spread to w[%d] h[%d] \n", spread_w, spread_h);
printf("Changing spread to w[%d] h[%d] \n", spread_w, spread_h);
if (!edje_edit_part_item_index_spread_w_set(edje_edit_obj, "green", 1, spread_w))
fprintf(stderr, "Couldn't set spread w for item x2, something is absolutely wrong!!!\n");
@ -180,7 +180,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
return;
}
@ -193,7 +193,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
if (min_w >= 500) min_w = 200;
if (min_h >= 500) min_h = 200;
fprintf(stdout, "Changing min to w[%d] h[%d] \n", min_w, min_h);
printf("Changing min to w[%d] h[%d] \n", min_w, min_h);
if (!edje_edit_part_item_index_min_w_set(edje_edit_obj, "green", 1, min_w))
fprintf(stderr, "Couldn't set min w for item x2, something is absolutely wrong!!!\n");
@ -202,7 +202,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
return;
}
@ -215,7 +215,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
if (max_w <= 0) max_w = 800;
if (max_h <= 0) max_h = 800;
fprintf(stdout, "Changing max to w[%d] h[%d] \n", max_w, max_h);
printf("Changing max to w[%d] h[%d] \n", max_w, max_h);
if (!edje_edit_part_item_index_max_w_set(edje_edit_obj, "green", 1, max_w))
fprintf(stderr, "Couldn't set max w for item x2, something is absolutely wrong!!!\n");
@ -224,7 +224,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
return;
}
@ -238,14 +238,14 @@ _on_bg_key_down(void *data EINA_UNUSED,
group_number = 0;
new_source = groups[group_number];
fprintf(stdout, "Changing item's source from [%s] to [%s] \n", source, new_source);
printf("Changing item's source from [%s] to [%s] \n", source, new_source);
if (!edje_edit_part_item_index_source_set(edje_edit_obj, "green", 1, new_source))
fprintf(stderr, "Couldn't change item's source, something is absolutely wrong!!!\n");
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
eina_stringshare_del(source);
return;
@ -255,7 +255,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
if (!edje_edit_part_item_append(edje_edit_obj, "green", "x_new", "complex_group"))
{
edje_edit_part_item_index_del(edje_edit_obj, "green", 3);
fprintf(stdout, "Successfully removed new item!\n");
printf("Successfully removed new item!\n");
}
else
{
@ -263,12 +263,12 @@ _on_bg_key_down(void *data EINA_UNUSED,
fprintf(stderr, "Couldn't set min w for item x_new, something is absolutely wrong!!!\n");
if (!edje_edit_part_item_index_min_h_set(edje_edit_obj, "green", 3, 200))
fprintf(stderr, "Couldn't set min h for item x_new, something is absolutely wrong!!!\n");
fprintf(stdout, "Successfully added new item!\n");
printf("Successfully added new item!\n");
}
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
return;
}
@ -282,14 +282,14 @@ _on_bg_key_down(void *data EINA_UNUSED,
layout_number = 0;
new_layout = layouts[layout_number];
fprintf(stdout, "Changing box's layout from [%s] to [%s] \n", layout, new_layout);
printf("Changing box's layout from [%s] to [%s] \n", layout, new_layout);
if (!edje_edit_state_box_layout_set(edje_edit_obj, "green", "default", 0.0, new_layout))
fprintf(stderr, "Couldn't change layout, something is absolutely wrong!!!\n");
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
eina_stringshare_del(layout);
return;
@ -304,14 +304,14 @@ _on_bg_key_down(void *data EINA_UNUSED,
alt_layout_number = 0;
new_layout = layouts[alt_layout_number];
fprintf(stdout, "Changing box's alternative layout from [%s] to [%s] \n", layout, new_layout);
printf("Changing box's alternative layout from [%s] to [%s] \n", layout, new_layout);
if (!edje_edit_state_box_alt_layout_set(edje_edit_obj, "green", "default", 0.0, new_layout))
fprintf(stderr, "Couldn't change alternative layout, something is absolutely wrong!!!\n");
edje_edit_save_all(edje_edit_obj);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
eina_stringshare_del(layout);
return;
@ -348,7 +348,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
/* loading edje edit object here */
edje_edit_obj = edje_edit_object_add(evas);
if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
fprintf(stdout, "Couldn't load edje edit object! \n");
printf("Couldn't load edje edit object! \n");
evas_object_resize(edje_edit_obj, WIDTH, HEIGHT);
evas_object_show(edje_edit_obj);
@ -358,7 +358,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
evas_object_focus_set(edje_edit_obj, EINA_TRUE);
evas_object_event_callback_add(edje_edit_obj, EVAS_CALLBACK_KEY_DOWN, _on_bg_key_down, ee);
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -100,7 +100,7 @@ _on_bg_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, voi
if (!strcmp(ev->key, "h"))
{
fprintf(stdout, commands);
printf(commands);
return;
}
// just moving the part and text
@ -150,7 +150,7 @@ _on_bg_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, voi
else
{
printf("unhandled key: %s\n", ev->key);
fprintf(stdout, commands);
printf(commands);
}
}
@ -217,7 +217,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
edje_perspective_set(app.ps, 240, 160, 0, app.focal);
edje_perspective_global_set(app.ps, EINA_TRUE);
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -53,7 +53,7 @@ _on_keydown(void *data,
if (!strcmp(ev->key, "h")) /* print help */
{
fprintf(stdout, commands);
printf(commands);
return;
}
else if (!strcmp(ev->key, "t")) /* toggle right rectangle's visibility */
@ -75,7 +75,7 @@ _on_keydown(void *data,
else
{
printf("unhandled key: %s\n", ev->key);
fprintf(stdout, commands);
printf(commands);
}
}
@ -90,7 +90,7 @@ static void
_sig_print(const char *emission,
const char *source)
{
fprintf(stdout, "Signal %s coming from part %s!\n", emission, source);
printf("Signal %s coming from part %s!\n", emission, source);
}
static void
@ -138,7 +138,7 @@ _message_handle(void *data EINA_UNUSED,
m = msg;
fprintf(stdout, "String message received: %s\n", m->str);
printf("String message received: %s\n", m->str);
}
int
@ -215,7 +215,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
evas_object_repeat_events_set(border, EINA_TRUE);
evas_object_show(border);
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -41,7 +41,7 @@ _columns_rows_print(Evas_Object *edje_obj)
if (edje_object_part_table_col_row_size_get(edje_obj, "table_part", &cols,
&rows))
fprintf(stdout, "Number of columns: %d\nNumber of rows: %d\n", cols, rows);
printf("Number of columns: %d\nNumber of rows: %d\n", cols, rows);
else
fprintf(stderr, "Cannot get the number of columns and rows\n");
}

View File

@ -57,7 +57,7 @@ _on_mouse_over(void *data, Evas_Object *edje_obj,
y = HEIGHT;
else if (y < 0) y = 0;
fprintf(stdout, "Moving object to - (%d,%d)\n", x, y);
printf("Moving object to - (%d,%d)\n", x, y);
evas_object_move(edje_obj, x, y);
}

View File

@ -47,7 +47,7 @@ _on_keydown(void *data,
if (!strcmp(ev->key, "h"))
{
fprintf(stdout, commands);
printf(commands);
return;
}
else if (!strcmp(ev->key, "e"))
@ -60,7 +60,7 @@ _on_keydown(void *data,
fprintf(stderr, "Could not load 'plain/edje/group' from sigtest.edj: %s\n", errmsg);
}
else
fprintf(stdout, "Loaded Edje object bound to group 'plain/edje/group' from"
printf("Loaded Edje object bound to group 'plain/edje/group' from"
" file sigtest.edj with success!\n");
return;
}
@ -74,7 +74,7 @@ _on_keydown(void *data,
fprintf(stderr, "Could not load 'lua_base' from sigtest.edj: %s\n", errmsg);
}
else
fprintf(stdout, "Loaded Edje object bound to group 'lua_base' from"
printf("Loaded Edje object bound to group 'lua_base' from"
" file sigtest.edj with success!\n");
return;
}
@ -82,19 +82,19 @@ _on_keydown(void *data,
{
Edje_Message_String *msg = malloc(sizeof(*msg));
fprintf(stdout, "\n");
printf("\n");
msg->str = strdup("C message text");
edje_object_message_send(edje_obj, EDJE_MESSAGE_STRING, 2, msg);
free(msg);
fprintf(stdout, "C message sent\n");
printf("C message sent\n");
return;
}
else if (!strcmp(ev->key, "s"))
{
fprintf(stdout, "\n");
printf("\n");
edje_object_signal_emit(edje_obj, "C signal 1", "Csource");
edje_object_signal_emit(edje_obj, "bubbles_lua:C signal 2", "Csource");
fprintf(stdout, "C signal sent\n");
printf("C signal sent\n");
return;
}
else if (!strcmp(ev->key, "Escape"))
@ -102,7 +102,7 @@ _on_keydown(void *data,
else
{
printf("unhandled key: %s\n", ev->key);
fprintf(stdout, commands);
printf(commands);
}
}
@ -111,18 +111,18 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
int i;
fprintf(stdout, "C::message id=%d type=%d ", id, type);
printf("C::message id=%d type=%d ", id, type);
switch (type)
{
case EDJE_MESSAGE_NONE :
{
fprintf(stdout, " NONE");
printf(" NONE");
break;
}
case EDJE_MESSAGE_SIGNAL :
{
fprintf(stdout, " SIGNAL ");
printf(" SIGNAL ");
break;
}
@ -130,7 +130,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_String *mmsg = msg;
fprintf(stdout, " STRING %s", mmsg->str);
printf(" STRING %s", mmsg->str);
break;
}
@ -138,7 +138,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_Int *mmsg = msg;
fprintf(stdout, " INT %d", mmsg->val);
printf(" INT %d", mmsg->val);
break;
}
@ -146,7 +146,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_Float *mmsg = msg;
fprintf(stdout, " FLOAT %f", mmsg->val);
printf(" FLOAT %f", mmsg->val);
break;
}
@ -154,9 +154,9 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_String_Set *mmsg = msg;
fprintf(stdout, " STRING_SET -\n");
printf(" STRING_SET -\n");
for (i = 0; i < mmsg->count; i++)
fprintf(stdout, " %s\n", mmsg->str[i]);
printf(" %s\n", mmsg->str[i]);
break;
}
@ -164,9 +164,9 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_Int_Set *mmsg = msg;
fprintf(stdout, " INT_SET -\n");
printf(" INT_SET -\n");
for (i = 0; i < mmsg->count; i++)
fprintf(stdout, " %d\n", mmsg->val[i]);
printf(" %d\n", mmsg->val[i]);
break;
}
@ -174,9 +174,9 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_Float_Set *mmsg = msg;
fprintf(stdout, " FLOAT_SET -\n");
printf(" FLOAT_SET -\n");
for (i = 0; i < mmsg->count; i++)
fprintf(stdout, " %f\n", mmsg->val[i]);
printf(" %f\n", mmsg->val[i]);
break;
}
@ -184,7 +184,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_String_Int *mmsg = msg;
fprintf(stdout, " STRING_INT %s %d", mmsg->str, mmsg->val);
printf(" STRING_INT %s %d", mmsg->str, mmsg->val);
break;
}
@ -192,7 +192,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_String_Float *mmsg = msg;
fprintf(stdout, " STRING_FLOAT %s %f", mmsg->str, mmsg->val);
printf(" STRING_FLOAT %s %f", mmsg->str, mmsg->val);
break;
}
@ -200,9 +200,9 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_String_Int_Set *mmsg = msg;
fprintf(stdout, " STRING_INT_SET %s -\n", mmsg->str);
printf(" STRING_INT_SET %s -\n", mmsg->str);
for (i = 0; i < mmsg->count; i++)
fprintf(stdout, " %d\n", mmsg->val[i]);
printf(" %d\n", mmsg->val[i]);
break;
}
@ -210,19 +210,19 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
{
Edje_Message_String_Float_Set *mmsg = msg;
fprintf(stdout, " STRING_FLOAT_SET %s -\n", mmsg->str);
printf(" STRING_FLOAT_SET %s -\n", mmsg->str);
for (i = 0; i < mmsg->count; i++)
fprintf(stdout, " %f\n", mmsg->val[i]);
printf(" %f\n", mmsg->val[i]);
break;
}
}
fprintf(stdout, "\n");
printf("\n");
}
static void
_on_signal(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *emission, const char *source)
{
fprintf(stdout, "C::signal sig=|%s| src=|%s|\n", emission, source);
printf("C::signal sig=|%s| src=|%s|\n", emission, source);
}
static void
@ -283,7 +283,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
goto shutdown_edje;
}
fprintf(stdout, "Loaded Edje object bound to group 'lua_base' from"
printf("Loaded Edje object bound to group 'lua_base' from"
" file sigtest.edj with success!\n");
evas_object_move(edje_obj, 20, 20);
@ -305,7 +305,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
evas_object_move(border, 20 - 2, 20 - 2);
evas_object_show(border);
fprintf(stdout, commands);
printf(commands);
ecore_evas_show(ee);

View File

@ -129,7 +129,7 @@ void tiler_calc()
itr = eina_tiler_iterator_new(tiler);
EINA_ITERATOR_FOREACH(itr, rect)
{
fprintf(stdout, "Result Rect [%d] (%d, %d) (%d x %d)\n", i++, rect->x, rect->y, rect->w, rect->h);
printf("Result Rect [%d] (%d, %d) (%d x %d)\n", i++, rect->x, rect->y, rect->w, rect->h);
o = evas_object_rectangle_add(evas);
evas_object_color_set(o, 0, 255, 0, 255);
@ -254,7 +254,7 @@ _on_key_down(void *data,
/* change tiler tile size */
tile_idx ++;
tile_idx %= tile_count;
fprintf(stdout, "Tiler Size : %d\n", tilesize[tile_idx]);
printf("Tiler Size : %d\n", tilesize[tile_idx]);
rect_update();
return;
@ -269,7 +269,7 @@ _on_key_down(void *data,
}
else
{
fprintf(stdout, "Key %s not supported.\nCommands:%s", ev->key, commands);
printf("Key %s not supported.\nCommands:%s", ev->key, commands);
return;
}
@ -285,7 +285,7 @@ main(int argc, char *argv[])
Eina_Rectangle *rect;
Eina_Iterator *itr;
fprintf(stdout, "Usage.\nCommands:%s", commands);
printf("Usage.\nCommands:%s", commands);
ecore_evas_init();
ecore_init();

View File

@ -24,7 +24,7 @@ _main_cb(void *data, Eio_File *handler EINA_UNUSED, const char *file)
{
int *number_of_listed_files = (int *)data;
fprintf(stdout, "Processing file:%s\n", file);
printf("Processing file:%s\n", file);
(*number_of_listed_files)++;
}
@ -34,7 +34,7 @@ _done_cb(void *data, Eio_File *handler EINA_UNUSED)
{
int *number_of_listed_files = (int *)data;
fprintf(stdout, "Number of listed files:%d\n" \
printf("Number of listed files:%d\n" \
"ls operation is done, quitting.\n", *number_of_listed_files);
ecore_main_loop_quit();

View File

@ -49,7 +49,7 @@ _underflow_cb(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
fprintf(stdout, "Underflow!\n");
printf("Underflow!\n");
}
void /* overflow callback */
@ -57,7 +57,7 @@ _overflow_cb(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
fprintf(stdout, "Overflow!\n");
printf("Overflow!\n");
}
static Eina_Bool
@ -74,19 +74,19 @@ _on_keydown(void *data,
if (strcmp(ev->keyname, "h") == 0) /* print help */
{
fprintf(stdout, "%s", commands);
printf("%s", commands);
}
else if (strcmp(ev->keyname, "n") == 0) /* flip to next item */
{
elm_flipselector_flip_next(fs);
fprintf(stdout, "Flipping to next item\n");
printf("Flipping to next item\n");
}
else if (strcmp(ev->keyname, "p") == 0) /* flip to previous item */
{
elm_flipselector_flip_prev(fs);
fprintf(stdout, "Flipping to previous item\n");
printf("Flipping to previous item\n");
}
else if (strcmp(ev->keyname, "f") == 0) /* print first item's label */
{
@ -94,7 +94,7 @@ _on_keydown(void *data,
it = elm_flipselector_first_item_get(fs);
fprintf(stdout, "Flip selector's first item is: %s\n", it ?
printf("Flip selector's first item is: %s\n", it ?
elm_object_item_text_get(it) : "none");
}
else if (strcmp(ev->keyname, "l") == 0) /* print last item's label */
@ -103,7 +103,7 @@ _on_keydown(void *data,
it = elm_flipselector_last_item_get(fs);
fprintf(stdout, "Flip selector's last item is: %s\n", it ?
printf("Flip selector's last item is: %s\n", it ?
elm_object_item_text_get(it) : "none");
}
else if (strcmp(ev->keyname, "s") == 0) /* print selected item's label */
@ -112,7 +112,7 @@ _on_keydown(void *data,
it = elm_flipselector_selected_item_get(fs);
fprintf(stdout, "Flip selector's selected item is: %s\n", it ?
printf("Flip selector's selected item is: %s\n", it ?
elm_object_item_text_get(it) : "none");
}
else
@ -174,7 +174,7 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
evas_object_show(win);
fprintf(stdout, "%s", commands);
printf("%s", commands);
elm_run();
return 0;

View File

@ -75,10 +75,10 @@ elm_main(int argc EINA_UNUSED,
elm_app_compile_lib_dir_set(LIB_DIR);
elm_app_info_set(elm_main, "elementary", "images/logo.png");
fprintf(stdout, "prefix was set to: %s\n", elm_app_prefix_dir_get());
fprintf(stdout, "data directory is: %s\n", elm_app_data_dir_get());
fprintf(stdout, "library directory is: %s\n", elm_app_lib_dir_get());
fprintf(stdout, "locale directory is: %s\n", elm_app_locale_dir_get());
printf("prefix was set to: %s\n", elm_app_prefix_dir_get());
printf("data directory is: %s\n", elm_app_data_dir_get());
printf("library directory is: %s\n", elm_app_lib_dir_get());
printf("locale directory is: %s\n", elm_app_locale_dir_get());
win = elm_win_util_standard_add("top-level-funcs-example",
"Elementary Top-level Functions Example");
@ -105,7 +105,7 @@ elm_main(int argc EINA_UNUSED,
d.btn = elm_button_add(win);
elm_object_text_set(d.btn, "Click me");
elm_object_content_set(frame, d.btn);
fprintf(stdout, "Elementary's finger size is set to %d pixels\n.",
printf("Elementary's finger size is set to %d pixels\n.",
elm_config_finger_size_get());
evas_object_show(d.btn);

View File

@ -57,7 +57,7 @@ _always_select_change(void *data,
else
elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_DEFAULT);
fprintf(stdout, "\"Always select\" mode for gengrid items is now %s\n",
printf("\"Always select\" mode for gengrid items is now %s\n",
always ? "on" : "off");
}
@ -72,7 +72,7 @@ _bouncing_change(void *data,
elm_scroller_bounce_set(grid, bounce, bounce);
fprintf(stdout, "Bouncing effect for gengrid is now %s\n",
printf("Bouncing effect for gengrid is now %s\n",
bounce ? "on" : "off");
}
@ -87,7 +87,7 @@ _multi_change(void *data,
elm_gengrid_multi_select_set(grid, multi);
fprintf(stdout, "Multi-selection for gengrid is now %s\n",
printf("Multi-selection for gengrid is now %s\n",
multi ? "on" : "off");
elm_object_disabled_set(before_bt, multi);
@ -116,7 +116,7 @@ _no_sel_change(void *data,
else
elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_DEFAULT);
fprintf(stdout, "Selection for gengrid items is now %s\n",
printf("Selection for gengrid items is now %s\n",
no_sel ? "disabled" : "enabled");
}
@ -131,7 +131,7 @@ _grid_sel(void *data,
elm_gengrid_item_pos_get(event_info, &x, &y);
fprintf(stdout, "Item [%p], with data [%p], path %s, at position (%d, %d),"
printf("Item [%p], with data [%p], path %s, at position (%d, %d),"
" has been selected\n", event_info, data, it->path, x, y);
}
@ -216,7 +216,7 @@ _clear_cb(void *data,
{
elm_gengrid_clear(data);
fprintf(stdout, "Clearing the grid!\n");
printf("Clearing the grid!\n");
}
/* bring in 1st item */
@ -277,7 +277,7 @@ _double_click(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info)
{
fprintf(stdout, "Double click on item with handle %p\n", event_info);
printf("Double click on item with handle %p\n", event_info);
}
/* item long press callback */
@ -286,7 +286,7 @@ _long_pressed(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info)
{
fprintf(stdout, "Long press on item with handle %p\n", event_info);
printf("Long press on item with handle %p\n", event_info);
}
/* label fetching callback */
@ -364,7 +364,7 @@ _grid_scroll_stopped_cb(void *data EINA_UNUSED,
{
int h_pagenumber = 0, v_pagenumber = 0;
elm_scroller_current_page_get(obj, &h_pagenumber, &v_pagenumber);
fprintf(stdout, "Grid current horiz page is %d, vert page is %d\n",
printf("Grid current horiz page is %d, vert page is %d\n",
h_pagenumber, v_pagenumber);
}
@ -379,7 +379,7 @@ _h_align_change_cb(void *data,
elm_gengrid_align_get(data, NULL, &v_align);
fprintf(stdout, "Setting horizontal alignment to %f\n", val);
printf("Setting horizontal alignment to %f\n", val);
elm_gengrid_align_set(data, val, v_align);
}
@ -393,7 +393,7 @@ _v_align_change_cb(void *data,
elm_gengrid_align_get(data, &h_align, NULL);
fprintf(stdout, "Setting vertical alignment to %f\n", val);
printf("Setting vertical alignment to %f\n", val);
elm_gengrid_align_set(data, h_align, val);
}
@ -407,7 +407,7 @@ _page_change_cb(void *data,
elm_scroller_page_relative_set(data, val, val);
fprintf(stdout, "Setting grid page's relative size to %f\n", val);
printf("Setting grid page's relative size to %f\n", val);
}
EAPI_MAIN int

View File

@ -20,7 +20,7 @@ static const char *dict[] = \
static void
_index_item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
{
fprintf(stdout, "Deleting index node (%s). Comparing index "
printf("Deleting index node (%s). Comparing index "
"item data reported via callback with the one returned by "
"index's API on items: %s.\n",
elm_index_item_letter_get(event_info),
@ -36,7 +36,7 @@ _item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED
if (!it) return;
fprintf(stdout, "Deleting last selected index item, which had letter"
printf("Deleting last selected index item, which had letter"
" %s (pointing to %p)\n", elm_index_item_letter_get(it),
elm_object_item_data_get(it));
@ -57,7 +57,7 @@ _active_set(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS
Eina_Bool disabled = elm_index_autohide_disabled_get(data);
elm_index_autohide_disabled_set(data, !disabled);
fprintf(stdout, "Toggling index programmatically to %s.\n",
printf("Toggling index programmatically to %s.\n",
!disabled ? "On" : "Off");
}
@ -73,7 +73,7 @@ _index_selected(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
{
Elm_Object_Item *lit = event_info;
fprintf(stdout, "New index item selected. Comparing item reported"
printf("New index item selected. Comparing item reported"
" via callback with the selection returned by the API: "
"%s.\n", lit == elm_index_selected_item_get(obj, 0) ? "OK" :
"FAIL, something went wrong");

View File

@ -8,7 +8,7 @@ Eina_Bool _alloc_memory(Axis_Key **ckey, Panel_Struct **pobj, Axis_Key **lkey)
if (!(*ckey) || !(*pobj) || !(*lkey))
{
fprintf(stdout, "Not enough memory - at %s line %d\n", __FILE__, __LINE__);
printf("Not enough memory - at %s line %d\n", __FILE__, __LINE__);
free(*ckey);
free(*pobj);
free(*lkey);
@ -34,7 +34,7 @@ init_panel_camera_light(Evas_Object *win, Eo *camera_node, Eo *light_node, doubl
if (ELM_WIN_UNKNOWN == elm_win_type_get(win))
{
fprintf(stdout, "Not appropriate parent object - at %s line %d\n", __FILE__, __LINE__);
printf("Not appropriate parent object - at %s line %d\n", __FILE__, __LINE__);
return NULL;
}

View File

@ -513,7 +513,7 @@ _xml_attr_data(void *data, const char *key, const char *value)
format[i] = a[i + 1];
if (strcmp(format, "md2") && strcmp(format, "obj") && strcmp(format, "ply"))
{
fprintf(stdout, "\nUnsupported fromat file\n");
printf("\nUnsupported fromat file\n");
globalGraphical.model_path = NULL;
}
free(format);
@ -595,7 +595,7 @@ static void _init_graphical()
globalGraphical.model_path = NULL;
if (!config)
fprintf(stdout, "Could not open initial_config.xml, count=4, speed=10, precision=100, perspective=120");
printf("Could not open initial_config.xml, count=4, speed=10, precision=100, perspective=120");
else
{
buffer = (char*)(eina_file_map_all(config, EINA_FILE_RANDOM));

View File

@ -72,7 +72,7 @@ void _value_int_to_char(char *buf, int value, const char *description)
static Eina_Bool
_timer_update(void *data)
{
fprintf(stdout, " frame rate = %f fps\n", fps_frames / 10.0);
printf(" frame rate = %f fps\n", fps_frames / 10.0);
fps_frames = 0;
return EINA_TRUE;
}
@ -144,7 +144,7 @@ _on_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
diff_sec = ((float)time) / CLOCKS_PER_SEC / 10;
if (pick)
{
fprintf(stdout, "Boom! Color pick time expended for pick: %2.7f \n", diff_sec);
printf("Boom! Color pick time expended for pick: %2.7f \n", diff_sec);
if (n != globalGraphical.mesh_nodebox)
evas_canvas3d_node_scale_set(n, 0.5, 0.5, 0.5);
}
@ -157,7 +157,7 @@ _on_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
diff_sec = ((float)time) / CLOCKS_PER_SEC / 10;
if (pick)
{
fprintf(stdout, "Boom! Geometry pick time expended for pick: %2.7f, TexCoord (%f, %f)\n", diff_sec, s, t);
printf("Boom! Geometry pick time expended for pick: %2.7f, TexCoord (%f, %f)\n", diff_sec, s, t);
if (n != globalGraphical.mesh_nodebox)
evas_canvas3d_node_scale_set(n, 0.5, 0.5, 0.5);
}
@ -545,7 +545,7 @@ _load_mesh(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
}
else
{
fprintf(stdout, "\nUnsupported fromat file\n");
printf("\nUnsupported fromat file\n");
globalGraphical.model_path = NULL;
elm_object_text_set(obj, "load");
}

View File

@ -174,9 +174,9 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
slide_last = slide_it;
list = elm_slideshow_items_get(slideshow);
fprintf(stdout, "List of items in the slideshow:\n");
printf("List of items in the slideshow:\n");
EINA_LIST_FOREACH(list, l, slide_it)
fprintf(stdout, "\t%s\n",
printf("\t%s\n",
(const char *)elm_object_item_data_get(slide_it));
notify = elm_notify_add(win);