From ef966e952762d10e00a47158145d1fac9031ee8a Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Wed, 22 Apr 2015 15:46:43 +0900 Subject: [PATCH] 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 --- legacy/elementary/src/lib/elm_entry.eo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_entry.eo b/legacy/elementary/src/lib/elm_entry.eo index f1ca920..1f70348 100644 --- a/legacy/elementary/src/lib/elm_entry.eo +++ b/legacy/elementary/src/lib/elm_entry.eo @@ -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 { -- 2.7.4