From 02d83ebcd446aa15bb56fd65407b93b5810ea17e Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Fri, 31 Aug 2018 17:45:31 +0900 Subject: [PATCH] docs: Fix typos in API reference doc and comments. Reviewers: Hermet, segfaultxavi Reviewed By: Hermet, segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6948 --- src/examples/evas/evas-init-shutdown.c | 2 +- src/lib/ecore/efl_io_copier.eo | 2 +- src/lib/ecore_fb/ecore_fb_li.c | 2 +- src/lib/ecore_wl2/Ecore_Wl2.h | 4 ++-- src/lib/edje/edje_types.eot | 4 ++-- src/lib/eeze/eeze_sensor.c | 2 +- src/lib/efl/interfaces/efl_text_cursor.eo | 2 +- src/lib/eina/eina_vpath.h | 2 +- src/lib/elementary/efl_ui_dnd.eo | 2 +- src/lib/elementary/efl_ui_widget.c | 4 ++-- src/lib/elementary/efl_ui_win.c | 2 +- src/lib/elementary/elm_config.h | 8 ++++---- src/lib/elementary/elm_transit.c | 2 +- src/lib/elementary/elm_win_legacy.h | 2 +- src/lib/elocation/elocation.c | 2 +- src/lib/evas/canvas/efl_canvas_object.eo | 4 ++-- src/static_libs/http-parser/README.md | 2 +- .../ecore/ecore_test_ecore_thread_eina_thread_queue.c | 2 +- src/tests/evas/evas_test_textblock.c | 2 +- 19 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/examples/evas/evas-init-shutdown.c b/src/examples/evas/evas-init-shutdown.c index 4194fcae70..197891b354 100644 --- a/src/examples/evas/evas-init-shutdown.c +++ b/src/examples/evas/evas-init-shutdown.c @@ -32,7 +32,7 @@ main(void) char *engine_name; /* Initialize Evas. This will startup other dependencies such as - * eina, eet, ecore, etc. and initalizes various internal things + * eina, eet, ecore, etc. and initializes various internal things * (threads, filters, etc.) */ evas_init(); diff --git a/src/lib/ecore/efl_io_copier.eo b/src/lib/ecore/efl_io_copier.eo index 45ff02194c..f3506458d2 100644 --- a/src/lib/ecore/efl_io_copier.eo +++ b/src/lib/ecore/efl_io_copier.eo @@ -25,7 +25,7 @@ class Efl.Io.Copier (Efl.Loop_Consumer, Efl.Io.Closer) { reported as data when it's read from @.source). - The "line" event is only emitted when @.line_delimiter is - set and not empty. It's simiar to "data". + set and not empty. It's similar to "data". - The "done" event is emitted if @.source is @Efl.Io.Reader.eos $true and all data was written to diff --git a/src/lib/ecore_fb/ecore_fb_li.c b/src/lib/ecore_fb/ecore_fb_li.c index 38500798b2..9e8025df77 100644 --- a/src/lib/ecore_fb/ecore_fb_li.c +++ b/src/lib/ecore_fb/ecore_fb_li.c @@ -22,7 +22,7 @@ static const char *_ecore_fb_li_kbd_syms[144 * 7] = * operation with a byte that only has the relevant bit set. * eg. to check for the 12th bit, we do (array[1] & 1<<4). * Moved to static inline in order to force compiler to otimized - * the unsued part away or force a link error if long has an unexpected + * the unused part away or force a link error if long has an unexpected * size. * - bigeasy */ diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index bbc7e1ccac..5d3ccfb2fc 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -1721,7 +1721,7 @@ EAPI Ecore_Wl2_Drag_Action ecore_wl2_offer_actions_get(Ecore_Wl2_Offer *offer); * * @param offer Offer object to use * @param actions A orĀ“ed value of mutliple Ecore_Wl2_Drag_Action values - * @param action the preffered action out of the actions + * @param action the preferred action out of the actions * * @ingroup Ecore_Wl2_Dnd_Group * @since 1.19 @@ -1733,7 +1733,7 @@ EAPI void ecore_wl2_offer_actions_set(Ecore_Wl2_Offer *offer, Ecore_Wl2_Drag_Act * * @param offer Offer object to use * - * @return the prefered action + * @return the preferred action * * @ingroup Ecore_Wl2_Dnd_Group * @since 1.19 diff --git a/src/lib/edje/edje_types.eot b/src/lib/edje/edje_types.eot index e2b07c5ae3..bd58febd61 100644 --- a/src/lib/edje/edje_types.eot +++ b/src/lib/edje/edje_types.eot @@ -31,7 +31,7 @@ enum Edje.Cursor { selection_begin, [[Selection begin cursor state]] selection_end, [[Selection end cursor state]] preedit_start, [[Pre-edit start cursor state]] - preedit_end, [[Pre-edit end cursor starge]] + preedit_end, [[Pre-edit end cursor state]] user, [[User cursor state]] user_extra [[User extra cursor state]] } @@ -70,7 +70,7 @@ enum Edje.Input_Panel.Lang { } enum Edje.Input_Panel.Return_Key_Type { - [[Input panel retrun key types]] + [[Input panel return key types]] default, [[Default @since 1.2]] diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c index df8a14af36..f147e8a753 100644 --- a/src/lib/eeze/eeze_sensor.c +++ b/src/lib/eeze/eeze_sensor.c @@ -152,7 +152,7 @@ eeze_sensor_modules_unload(void) } /* This function is offered to the modules to register itself after they have - * been loaded in initialized. They stay in the hash funtion until they + * been loaded in initialized. They stay in the hash function until they * unregister themself. */ EAPI Eina_Bool diff --git a/src/lib/efl/interfaces/efl_text_cursor.eo b/src/lib/efl/interfaces/efl_text_cursor.eo index b0e4c28b51..87bba61bdd 100644 --- a/src/lib/efl/interfaces/efl_text_cursor.eo +++ b/src/lib/efl/interfaces/efl_text_cursor.eo @@ -9,7 +9,7 @@ enum Efl.Text_Cursor_Get_Type { selection_begin, [[Selection begin cursor state]] selection_end, [[Selection end cursor state]] preedit_start, [[Pre-edit start cursor state]] - preedit_end, [[Pre-edit end cursor starge]] + preedit_end, [[Pre-edit end cursor state]] user, [[User cursor state]] user_extra [[User extra cursor state]] } diff --git a/src/lib/eina/eina_vpath.h b/src/lib/eina/eina_vpath.h index 287623fcda..44b172c38c 100644 --- a/src/lib/eina/eina_vpath.h +++ b/src/lib/eina/eina_vpath.h @@ -99,7 +99,7 @@ EAPI char *eina_vpath_resolve(Eina_Vpath path); * * @param str the buffer to stuff the characters into * @param size the size of the buffer - * @param format A snprintf style format string, which will get evalulated after the vpath strings are getting replaced + * @param format A snprintf style format string, which will get evaluated after the vpath strings are getting replaced * @param ... The arguments for the format string * * @return the number of characters that are written into str, on a error a value < 0 is returned. diff --git a/src/lib/elementary/efl_ui_dnd.eo b/src/lib/elementary/efl_ui_dnd.eo index 7c903c88cb..413cbc8539 100644 --- a/src/lib/elementary/efl_ui_dnd.eo +++ b/src/lib/elementary/efl_ui_dnd.eo @@ -32,7 +32,7 @@ mixin Efl.Ui.Dnd { } } drop_target_add { - [[Make the current object as drop targert. + [[Make the current object as drop target. There are four events emitted: - EFL_UI_DND_EVENT_DRAG_ENTER - EFL_UI_DND_EVENT_DRAG_LEAVE diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c index df8fe6020a..b4e59134ad 100644 --- a/src/lib/elementary/efl_ui_widget.c +++ b/src/lib/elementary/efl_ui_widget.c @@ -1895,10 +1895,10 @@ elm_widget_tree_unfocusable_get(const Eo *obj) * * Get the list of focusable child objects. * - * This function retruns list of child objects which can get focus. + * This function returns list of child objects which can get focus. * * @param obj The parent widget - * @retrun list of focusable child objects. + * @return list of focusable child objects. * * @ingroup Widget */ diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index b4307da693..38aa6d877b 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -202,7 +202,7 @@ struct _Efl_Ui_Win_Data int *rots; /* indicates available rotations */ unsigned int count; /* number of elements in available rotations */ Eina_Bool wm_supported : 1; /* set true when the window manager support window rotation */ - Eina_Bool use : 1; /* set ture when application use window manager rotation. */ + Eina_Bool use : 1; /* set true when application use window manager rotation. */ } wm_rot; void *trap_data; diff --git a/src/lib/elementary/elm_config.h b/src/lib/elementary/elm_config.h index 70c4d63a3f..535b70b1b2 100644 --- a/src/lib/elementary/elm_config.h +++ b/src/lib/elementary/elm_config.h @@ -186,7 +186,7 @@ EAPI void elm_config_profile_save(const char *profile); * @p derive_options string. * * At this point it is not expected that anyone would generally use this API - * except if you are a destktop environment and so the user base of this API + * except if you are a desktop environment and so the user base of this API * will be enlightenment itself. * * @param profile The new profile's name @@ -207,7 +207,7 @@ EAPI void elm_config_profile_derived_add(const char *profile, const char * from the current profile. * * At this point it is not expected that anyone would generally use this API - * except if you are a destktop environment and so the user base of this API + * except if you are a desktop environment and so the user base of this API * will be enlightenment itself. * * @param profile The profile's name that is to be deleted @@ -968,7 +968,7 @@ EAPI double elm_config_longpress_timeout_get(void); /** * Set the duration for occurring long press event. * - * @param lonpress_timeout Timeout for long press event + * @param longpress_timeout Timeout for long press event * @ingroup Longpress */ EAPI void elm_config_longpress_timeout_set(double longpress_timeout); @@ -981,7 +981,7 @@ EAPI void elm_config_longpress_timeout_set(double longpress_timeout); * canvas windows in the event the native display system does not provide one * or the native one is not wanted. * - * @param lonpress_timeout Timeout for long press event + * @param longpress_timeout Timeout for long press event * @ingroup Softcursor * * @see elm_config_softcursor_mode_get() diff --git a/src/lib/elementary/elm_transit.c b/src/lib/elementary/elm_transit.c index 1fadbabb5e..7791452c01 100644 --- a/src/lib/elementary/elm_transit.c +++ b/src/lib/elementary/elm_transit.c @@ -299,7 +299,7 @@ _transit_del(Elm_Transit *transit) free(transit); } -//If the transit is deleted then EINA_FALSE is retruned. +//If the transit is deleted then EINA_FALSE is returned. static Eina_Bool _transit_animate_op(Elm_Transit *transit, double progress) { diff --git a/src/lib/elementary/elm_win_legacy.h b/src/lib/elementary/elm_win_legacy.h index ef210528fc..be2e7f987e 100644 --- a/src/lib/elementary/elm_win_legacy.h +++ b/src/lib/elementary/elm_win_legacy.h @@ -290,7 +290,7 @@ EAPI void elm_win_norender_push(Evas_Object *obj); EAPI void elm_win_norender_pop(Evas_Object *obj); /** - * The retruns how many times norender has been pushed on the window + * The returns how many times norender has been pushed on the window * @param obj The window object * @return The number of times norender has been pushed * diff --git a/src/lib/elocation/elocation.c b/src/lib/elocation/elocation.c index cb0431c1ab..33c77d2e89 100644 --- a/src/lib/elocation/elocation.c +++ b/src/lib/elocation/elocation.c @@ -1212,7 +1212,7 @@ elocation_address_free(Elocation_Address *address_shadow) } } -/* Public API funtion to initialize the elocation library */ +/* Public API function to initialize the elocation library */ EAPI Eina_Bool elocation_init(void) { diff --git a/src/lib/evas/canvas/efl_canvas_object.eo b/src/lib/evas/canvas/efl_canvas_object.eo index 2f4d3fe28c..6d13d1c861 100644 --- a/src/lib/evas/canvas/efl_canvas_object.eo +++ b/src/lib/evas/canvas/efl_canvas_object.eo @@ -487,9 +487,9 @@ abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.S return: bool @warn_unused; [[$true if the call succeeded, $false otherwise.]] params { @in keyname: string @nonull; [[The key to request events for.]] - @in modifiers: Efl.Input.Modifier; [[A combinaison of modifier + @in modifiers: Efl.Input.Modifier; [[A combination of modifier keys that must be present to trigger the event.]] - @in not_modifiers: Efl.Input.Modifier; [[A combinaison of modifier + @in not_modifiers: Efl.Input.Modifier; [[A combination of modifier keys that must not be present to trigger the event.]] @in exclusive: bool; [[Request that the $obj is the only object receiving the $keyname events.]] diff --git a/src/static_libs/http-parser/README.md b/src/static_libs/http-parser/README.md index 0bf5d359ac..a054dbe167 100644 --- a/src/static_libs/http-parser/README.md +++ b/src/static_libs/http-parser/README.md @@ -61,7 +61,7 @@ if (recved < 0) { } /* Start up / continue the parser. - * Note we pass recved==0 to signal that EOF has been recieved. + * Note we pass recved==0 to signal that EOF has been received. */ nparsed = http_parser_execute(parser, &settings, buf, recved); diff --git a/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c b/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c index d9b7501f8b..cc1ddb1eb9 100644 --- a/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c +++ b/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c @@ -153,7 +153,7 @@ EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t2) mcount = msgs; if (mcount < 1000) { - ck_abort_msg("ERR: not enough messages recieved -> %i\n", mcount); + ck_abort_msg("ERR: not enough messages received -> %i\n", mcount); } if (DEBUG) printf("%i messages sent\n", i); ecore_thread_wait(th, 0.1); diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c index 49f7577374..c794fce6d5 100644 --- a/src/tests/evas/evas_test_textblock.c +++ b/src/tests/evas/evas_test_textblock.c @@ -4065,7 +4065,7 @@ EFL_START_TEST(evas_textblock_obstacle) "This is an example text to demonstrate the textblock object" " with obstacle objects support." " Any evas object can register itself as an obstacle to the textblock" - " object. Upon registring, it affects the layout of the text in" + " object. Upon registering, it affects the layout of the text in" " certain situations. Usually, when the obstacle shows above the text" " area, it will cause the layout of the text to split and move" " parts of it, so that all text area is apparent.";