cedric pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=7985c894598e9dfd0639ac33ea5cdbd1d363b5d8
commit 7985c894598e9dfd0639ac33ea5cdbd1d363b5d8 Author: Cedric BAIL <ced...@osg.samsung.com> Date: Mon Oct 19 11:41:14 2015 -0700 hoversel: rename label_auto_changed -> auto_update Thanks to Davide Andreoli for his review and suggestion. --- src/bin/test_hoversel.c | 2 +- src/lib/elc_hoversel.c | 10 +++++----- src/lib/elm_hoversel.eo | 4 ++-- src/lib/elm_widget_hoversel.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bin/test_hoversel.c b/src/bin/test_hoversel.c index e65efd9..2979e02 100644 --- a/src/bin/test_hoversel.c +++ b/src/bin/test_hoversel.c @@ -182,7 +182,7 @@ test_hoversel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_ hoversel = elm_hoversel_add(win); elm_hoversel_scrollable_set(hoversel, EINA_TRUE); - elm_hoversel_label_auto_changed_set(hoversel, EINA_TRUE); + elm_hoversel_auto_update_set(hoversel, EINA_TRUE); elm_hoversel_hover_parent_set(hoversel, win); elm_object_text_set(hoversel, "Some Icons"); elm_hoversel_item_add(hoversel, "Item 1", NULL, ELM_ICON_NONE, NULL, NULL); diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c index 2079e99..1969f40 100644 --- a/src/lib/elc_hoversel.c +++ b/src/lib/elc_hoversel.c @@ -120,7 +120,7 @@ _on_item_clicked(void *data EINA_UNUSED, if (item->func) item->func((void *)WIDGET_ITEM_DATA_GET(eo_it), obj2, eo_it); eo_do(obj2, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it)); - if (sd->auto_changed) + if (sd->auto_update) { Evas_Object *ic; @@ -982,15 +982,15 @@ _elm_hoversel_scrollable_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd) } EOLIAN void -_elm_hoversel_label_auto_changed_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool auto_changed) +_elm_hoversel_auto_update_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool auto_update) { - sd->auto_changed = !!auto_changed; + sd->auto_update = !!auto_update; } EOLIAN Eina_Bool -_elm_hoversel_label_auto_changed_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd) +_elm_hoversel_auto_update_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd) { - return sd->auto_changed; + return sd->auto_update; } #include "elm_hoversel_item.eo.c" diff --git a/src/lib/elm_hoversel.eo b/src/lib/elm_hoversel.eo index ca24396..b537ed1 100644 --- a/src/lib/elm_hoversel.eo +++ b/src/lib/elm_hoversel.eo @@ -57,14 +57,14 @@ class Elm.Hoversel (Elm.Button, Evas.Selectable_Interface, scrollable: bool; [[$true if scrollable $false otherwise.]] } } - @property label_auto_changed { + @property auto_update { [[Change the label of hoversel to that of selected item automatically.]] get{ } set{ } values { - auto_changed: bool; [[$true if the label is changed automatically or $false otherwise]] + auto_update: bool; [[$true if the label is changed automatically or $false otherwise]] } } hover_begin { diff --git a/src/lib/elm_widget_hoversel.h b/src/lib/elm_widget_hoversel.h index 2b97728..36aa5b2 100644 --- a/src/lib/elm_widget_hoversel.h +++ b/src/lib/elm_widget_hoversel.h @@ -42,7 +42,7 @@ struct _Elm_Hoversel_Data Eina_Bool horizontal : 1; Eina_Bool expanded : 1; Eina_Bool scroll_enabled: 1; - Eina_Bool auto_changed : 1; + Eina_Bool auto_update : 1; }; typedef struct _Elm_Hoversel_Item_Data Elm_Hoversel_Item_Data; --