_elm_scrollable_is(const Evas_Object *obj)
{
INTERNAL_ENTRY EINA_FALSE;
- return
- efl_isa(obj, ELM_INTERFACE_SCROLLABLE_MIXIN);
+ if (elm_widget_is_legacy(obj))
+ return
+ efl_isa(obj, ELM_INTERFACE_SCROLLABLE_MIXIN);
+ else
+ return
+ efl_isa(obj, EFL_UI_SCROLLABLE_INTERACTIVE_INTERFACE);
}
static void
if (sd->scroll_hold == 1)
{
if (_elm_scrollable_is(obj))
- elm_interface_scrollable_hold_set(obj, EINA_TRUE);
+ {
+ if (elm_widget_is_legacy(obj))
+ elm_interface_scrollable_hold_set(obj, EINA_TRUE);
+ else
+ efl_ui_scrollable_scroll_hold_set(obj, EINA_TRUE);
+ }
else
{
Evas_Object *child;
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
- elm_interface_scrollable_hold_set(child, EINA_TRUE);
+ if (elm_widget_is_legacy(obj))
+ elm_interface_scrollable_hold_set(child, EINA_TRUE);
+ else
+ efl_ui_scrollable_scroll_hold_set(child, EINA_TRUE);
}
}
}
if (!sd->scroll_hold)
{
if (_elm_scrollable_is(obj))
- elm_interface_scrollable_hold_set(obj, EINA_FALSE);
+ {
+ if (elm_widget_is_legacy(obj))
+ elm_interface_scrollable_hold_set(obj, EINA_FALSE);
+ else
+ efl_ui_scrollable_scroll_hold_set(obj, EINA_FALSE);
+ }
else
{
Evas_Object *child;
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
- elm_interface_scrollable_hold_set(child, EINA_FALSE);
+ if (elm_widget_is_legacy(obj))
+ elm_interface_scrollable_hold_set(child, EINA_FALSE);
+ else
+ efl_ui_scrollable_scroll_hold_set(child, EINA_FALSE);
}
}
}
if (sd->scroll_freeze == 1)
{
if (_elm_scrollable_is(obj))
- elm_interface_scrollable_freeze_set(obj, EINA_TRUE);
+ {
+ if (elm_widget_is_legacy(obj))
+ elm_interface_scrollable_freeze_set(obj, EINA_TRUE);
+ else
+ efl_ui_scrollable_scroll_freeze_set(obj, EINA_TRUE);
+ }
else
{
Evas_Object *child;
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
- elm_interface_scrollable_freeze_set(child, EINA_TRUE);
+ if (elm_widget_is_legacy(obj))
+ elm_interface_scrollable_freeze_set(child, EINA_TRUE);
+ else
+ efl_ui_scrollable_scroll_freeze_set(child, EINA_TRUE);
}
}
}
if (!sd->scroll_freeze)
{
if (_elm_scrollable_is(obj))
- elm_interface_scrollable_freeze_set(obj, EINA_FALSE);
+ {
+ if (elm_widget_is_legacy(obj))
+ elm_interface_scrollable_freeze_set(obj, EINA_FALSE);
+ else
+ efl_ui_scrollable_scroll_freeze_set(obj, EINA_FALSE);
+ }
else
{
Evas_Object *child;
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
- elm_interface_scrollable_freeze_set(child, EINA_FALSE);
+ if (elm_widget_is_legacy(obj))
+ elm_interface_scrollable_freeze_set(child, EINA_FALSE);
+ else
+ efl_ui_scrollable_scroll_freeze_set(child, EINA_FALSE);
}
}
}