From c8896617c5d181f4659e1c468033f4d5b2862ec4 Mon Sep 17 00:00:00 2001 From: jihoon Date: Wed, 15 Feb 2012 11:50:06 +0000 Subject: [PATCH] elm_entry: add 'const in some getter functions git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67979 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_entry.c | 8 ++++---- src/lib/elm_entry.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 8aca46a..275a0dc 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -3538,7 +3538,7 @@ elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout } EAPI Elm_Input_Panel_Layout -elm_entry_input_panel_layout_get(Evas_Object *obj) +elm_entry_input_panel_layout_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) ELM_INPUT_PANEL_LAYOUT_INVALID; Widget_Data *wd = elm_widget_data_get(obj); @@ -3559,7 +3559,7 @@ elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapita } EAPI Elm_Autocapital_Type -elm_entry_autocapital_type_get(Evas_Object *obj) +elm_entry_autocapital_type_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) ELM_AUTOCAPITAL_TYPE_NONE; Widget_Data *wd = elm_widget_data_get(obj); @@ -3580,7 +3580,7 @@ elm_entry_prediction_allow_set(Evas_Object *obj, Eina_Bool prediction) } EAPI Eina_Bool -elm_entry_prediction_allow_get(Evas_Object *obj) +elm_entry_prediction_allow_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_TRUE; Widget_Data *wd = elm_widget_data_get(obj); @@ -3611,7 +3611,7 @@ elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) } EAPI Eina_Bool -elm_entry_input_panel_enabled_get(Evas_Object *obj) +elm_entry_input_panel_enabled_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_TRUE; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_entry.h b/src/lib/elm_entry.h index ff5f933..dd8bab9 100644 --- a/src/lib/elm_entry.h +++ b/src/lib/elm_entry.h @@ -1096,7 +1096,7 @@ EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, E * * @see elm_entry_input_panel_layout_set */ -EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj); +EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(const Evas_Object *obj); /** * Set the autocapitalization type on the immodule. @@ -1112,7 +1112,7 @@ EAPI void elm_entry_autocapital_type_set(Evas_Object *obj, Elm * @param obj The entry object * @return autocapitalization type */ -EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj); +EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(const Evas_Object *obj); /** * Sets the attribute to show the input panel automatically. @@ -1128,7 +1128,7 @@ EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, * @param obj The entry object * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise */ -EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj); +EAPI Eina_Bool elm_entry_input_panel_enabled_get(const Evas_Object *obj); /** * Show the input panel (virtual keyboard) based on the input panel property of entry such as layout, autocapital types, and so on. @@ -1253,7 +1253,7 @@ EAPI void elm_entry_prediction_allow_set(Evas_Object *obj, Ein * @param obj The entry object * @return EINA_TRUE if it allows to use the text prediction, otherwise EINA_FALSE. */ -EAPI Eina_Bool elm_entry_prediction_allow_get(Evas_Object *obj); +EAPI Eina_Bool elm_entry_prediction_allow_get(const Evas_Object *obj); /* pre-made filters for entries */ -- 2.7.4