forked from enlightenment/efl
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:
parent
c53106db27
commit
72d214a21f
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue