hoversel: rename api scroll_enabled_set to scrollable_set

modify api for consistency.
scrollable_set is more closed to other similar apis.
This commit is contained in:
ChunEon Park 2015-09-07 20:41:34 +09:00
parent c53106db27
commit 72d214a21f
3 changed files with 10 additions and 7 deletions

View File

@ -181,7 +181,7 @@ test_hoversel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
evas_object_show(hoversel);
hoversel = elm_hoversel_add(win);
elm_hoversel_scroll_enabled_set(hoversel, EINA_TRUE);
elm_hoversel_scrollable_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);

View File

@ -777,13 +777,13 @@ _elm_hoversel_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNU
}
EOLIAN void
_elm_hoversel_scroll_enabled_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool scroll_enabled)
_elm_hoversel_scrollable_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool scroll)
{
sd->scroll_enabled = !!scroll_enabled;
sd->scroll_enabled = !!scroll;
}
EOLIAN Eina_Bool
_elm_hoversel_scroll_enabled_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
_elm_hoversel_scrollable_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
{
return sd->scroll_enabled;
}

View File

@ -42,16 +42,19 @@ class Elm.Hoversel (Elm.Button, Evas.Selectable_Interface,
return: const(list<Elm.Widget_Item *>)*;
}
}
@property scroll_enabled {
@property scrollable {
[[Control wether scrolling is enabled.
This Limit the size of contents and make them scrollable.]]
This Limit the size of contents and make them scrollable.
@since 1.16
]]
get {
}
set {
}
values {
scroll_enabled: bool; [[$true if scrollable $false otherwise.]]
scrollable: bool; [[$true if scrollable $false otherwise.]]
}
}
hover_begin {