efl: fix misspelt focused in API and documents.

Fix spelling in elm_code API and other documents too where this occurs.
Differential Revision: https://phab.enlightenment.org/D7299
This commit is contained in:
Alastair Poole 2018-11-17 14:28:59 +00:00 committed by Christopher Michael
parent b8f9610908
commit b985a3b0f9
4 changed files with 8 additions and 8 deletions

View File

@ -48,11 +48,11 @@ _key_down(void *data, const Efl_Event *ev)
testdata *td = data;
char str[1024];
// FIXME: By default the elm_win object is the focussed object
// FIXME: By default the elm_win object is the focused object
// this means that evas callbacks will transfer the KEY_UP/KEY_DOWN events
// to the elm_win. So, we get two key_down & two key_up events:
// 1. ecore_evas -> evas -> elm_win forward -> here
// 2. ecore_evas -> evas -> focussed obj (elm_win) -> here
// 2. ecore_evas -> evas -> focused obj (elm_win) -> here
sprintf(str, "key=%s keyname=%s string=%s compose=%s",
efl_input_key_get(ev->info),

View File

@ -1799,7 +1799,7 @@ _evas_event_key_cb(void *data, const Efl_Event *ev)
if (!evdata || evdata->win_fed)
return;
// evas_callbacks will send the event to the focussed object (ie. this win)
// evas_callbacks will send the event to the focused object (ie. this win)
if (evas_focus_get(evas_object_evas_get(win)) == win)
return;

View File

@ -161,7 +161,7 @@ _elm_code_widget_status_type_get(Elm_Code_Widget *widget, Elm_Code_Line *line, u
if (line->status != ELM_CODE_STATUS_TYPE_DEFAULT)
return line->status;
if (pd->editable && pd->focussed && pd->cursor_line == line->number)
if (pd->editable && pd->focused && pd->cursor_line == line->number)
return ELM_CODE_STATUS_TYPE_CURRENT;
if (pd->line_width_marker > 0 && pd->line_width_marker == col-1)
@ -338,7 +338,7 @@ _elm_code_widget_fill_cursor(Elm_Code_Widget *widget, unsigned int number, int g
pd = efl_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
if (pd->visible && pd->editable && pd->focussed && pd->cursor_line == number)
if (pd->visible && pd->editable && pd->focused && pd->cursor_line == number)
{
if (pd->cursor_col + gutter - 1 >= (unsigned int) w)
return;
@ -1850,7 +1850,7 @@ _elm_code_widget_focused_event_cb(void *data, Evas_Object *obj,
widget = (Elm_Code_Widget *)data;
pd = efl_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
pd->focussed = EINA_TRUE;
pd->focused = EINA_TRUE;
if (pd->cursor_rect)
elm_layout_signal_emit(pd->cursor_rect, "elm,action,focus", "elm");
@ -1867,7 +1867,7 @@ _elm_code_widget_unfocused_event_cb(void *data, Evas_Object *obj,
widget = (Elm_Code_Widget *)data;
pd = efl_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
pd->focussed = EINA_FALSE;
pd->focused = EINA_FALSE;
if (pd->cursor_rect)
elm_layout_signal_emit(pd->cursor_rect, "elm,action,unfocus", "elm");

View File

@ -32,7 +32,7 @@ typedef struct
unsigned int cursor_line, cursor_col;
Evas_Object *cursor_rect;
Eina_Bool visible, editable, focussed;
Eina_Bool visible, editable, focused;
Eina_Bool show_line_numbers;
unsigned int line_width_marker, tabstop;
Eina_Bool show_whitespace, tab_inserts_spaces;