forked from enlightenment/efl
elm_hoversel: change Elm_Hoversel_Data member name from scroll_enabled to scrollable
Summary: elm_hoversel_scroll_enabled_set/get() API were changed to elm_hoversel_scrollable_set/get(). However, the name of member of Elm_Hovsersel_Data related to those API are not changed. It can confuse developers later, so change it same to the name defined in elm_hoversel.eo file. Reviewers: Hermet, cedric Differential Revision: https://phab.enlightenment.org/D3140 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
03747a7ef6
commit
33f803a170
|
@ -437,7 +437,7 @@ _activate(Evas_Object *obj)
|
|||
eo_event_callback_add(ELM_WIDGET_EVENT_UNFOCUSED, _item_unfocused_cb, item));
|
||||
}
|
||||
|
||||
if (sd->scroll_enabled)
|
||||
if (sd->scrollable)
|
||||
{
|
||||
_create_scroller(obj, sd);
|
||||
elm_object_content_set(sd->scr, bx);
|
||||
|
@ -586,7 +586,7 @@ _on_move_resize(void * data,
|
|||
{
|
||||
Elm_Hoversel_Data *sd = data;
|
||||
|
||||
if (sd->scroll_enabled)
|
||||
if (sd->scrollable)
|
||||
_resizing_eval(obj, sd);
|
||||
}
|
||||
|
||||
|
@ -970,15 +970,15 @@ _elm_hoversel_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNU
|
|||
}
|
||||
|
||||
EOLIAN void
|
||||
_elm_hoversel_scrollable_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool scroll)
|
||||
_elm_hoversel_scrollable_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool scrollable)
|
||||
{
|
||||
sd->scroll_enabled = !!scroll;
|
||||
sd->scrollable = !!scrollable;
|
||||
}
|
||||
|
||||
EOLIAN Eina_Bool
|
||||
_elm_hoversel_scrollable_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
|
||||
{
|
||||
return sd->scroll_enabled;
|
||||
return sd->scrollable;
|
||||
}
|
||||
|
||||
EOLIAN void
|
||||
|
|
|
@ -41,7 +41,7 @@ struct _Elm_Hoversel_Data
|
|||
|
||||
Eina_Bool horizontal : 1;
|
||||
Eina_Bool expanded : 1;
|
||||
Eina_Bool scroll_enabled: 1;
|
||||
Eina_Bool scrollable : 1;
|
||||
Eina_Bool auto_update : 1;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue