entry: Fix elm_entry_input_panel_layout_get API to return ELM_INPUT_PANEL_LAYOUT_INVALID when it fails.

Summary:
Even if the given Evas_Object is NULL, API returns ELM_INPUT_PANEL_LAYOUT_NORMAL.
But, ELM_INPUT_PANEL_LAYOUT_INVALID seems proper in that case.

Test Plan:
Call the following API with NULL.
   elm_entry_input_panel_layout_get(NULL);

Reviewers: woohyun, Hermet, eunue

Reviewed By: eunue

Differential Revision: https://phab.enlightenment.org/D2404
This commit is contained in:
Youngbok Shin 2015-04-22 15:46:43 +09:00 committed by Jaeun Choi
parent 71860f7b3b
commit ef966e9527
1 changed files with 2 additions and 2 deletions

View File

@ -446,14 +446,14 @@ class Elm_Entry (Elm_Layout, Elm_Interface_Scrollable, Evas.Clickable_Interface,
/*@
Get the input panel layout of the entry
@return layout type
@return layout type. It returns ELM_INPUT_PANEL_LAYOUT_INVALID(8) when it fails.
@see elm_entry_input_panel_layout_set
@ingroup Entry */
}
values {
Elm_Input_Panel_Layout layout; /*@ layout type */
Elm_Input_Panel_Layout layout(8); /*@ layout type */
}
}
input_panel_return_key_type {