From 04d6a0e9ba8e897b4fb78e89802fc74f495c66fc Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Wed, 13 Oct 2010 16:12:43 +0900 Subject: [PATCH] [searchbar] renaming from background_set to boundary_rect_set --- src/lib/Elementary.h.in | 2 +- src/lib/elm_searchbar.c | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 800995f..1a31b07 100755 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -2387,7 +2387,7 @@ extern "C" { EAPI void elm_searchbar_cancel_button_animation_set(Evas_Object *obj, Eina_Bool cancel_btn_ani_flag); EAPI void elm_searchbar_cancel_button_set(Evas_Object *obj, Eina_Bool visible); EAPI void elm_searchbar_clear(Evas_Object *obj); - EAPI void elm_searchbar_background_set(Evas_Object *obj, Eina_Bool bgmode); + EAPI void elm_searchbar_boundary_rect_set(Evas_Object *obj, Eina_Bool boundary); /* actionsheet */ typedef enum _Elm_Actionsheet_Button_Type diff --git a/src/lib/elm_searchbar.c b/src/lib/elm_searchbar.c index 2aa0810..32f7e11 100644 --- a/src/lib/elm_searchbar.c +++ b/src/lib/elm_searchbar.c @@ -19,7 +19,7 @@ struct _Widget_Data Evas_Object *base, *eb, *cancel_btn; Eina_Bool cancel_btn_ani_flag; Eina_Bool cancel_btn_show_mode; - Eina_Bool background_mode; + Eina_Bool boundary_mode; }; static void _del_hook(Evas_Object *obj); @@ -184,7 +184,7 @@ EAPI Evas_Object *elm_searchbar_add(Evas_Object *parent) wd->cancel_btn_ani_flag = EINA_FALSE; wd->cancel_btn_show_mode = EINA_TRUE; - wd->background_mode = EINA_TRUE; + wd->boundary_mode = EINA_TRUE; elm_widget_resize_object_set(obj, wd->base); @@ -315,23 +315,23 @@ EAPI void elm_searchbar_clear(Evas_Object *obj) * set the searchbar background mode(with bg rect) set * * @param obj The searchbar object - * @param bgmode The flag of background mode or not + * @param boundary The flag of background mode or not * @return void * * @ingroup Searchbar */ -EAPI void elm_searchbar_background_set(Evas_Object *obj, Eina_Bool bgmode) +EAPI void elm_searchbar_boundary_rect_set(Evas_Object *obj, Eina_Bool boundary) { Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return; - if (wd->background_mode == bgmode) return; - else wd->background_mode = bgmode; + if (wd->boundary_mode == boundary) return; + else wd->boundary_mode = boundary; - if (wd->background_mode) + if (wd->boundary_mode) { - _elm_theme_object_set(obj, wd->base, "searchbar", "base", "default_with_bg"); - elm_object_style_set(wd->eb, "searchbar_with_bg"); + _elm_theme_object_set(obj, wd->base, "searchbar", "base", "default_with_bd"); + elm_object_style_set(wd->eb, "searchbar_with_bd"); } else -- 2.7.4