forked from enlightenment/efl
efl_ui/widget: check legacy type on correct object for scroll_hold push/pop
too much copy/paste Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9399
This commit is contained in:
parent
62d4d4c5b8
commit
e0ae3a9a76
|
@ -2117,7 +2117,7 @@ _efl_ui_widget_scroll_hold_push(Eo *obj, Elm_Widget_Smart_Data *sd)
|
||||||
{
|
{
|
||||||
if (elm_widget_is(child) && _elm_scrollable_is(child))
|
if (elm_widget_is(child) && _elm_scrollable_is(child))
|
||||||
{
|
{
|
||||||
if (elm_widget_is_legacy(obj))
|
if (elm_widget_is_legacy(child))
|
||||||
elm_interface_scrollable_hold_set(child, EINA_TRUE);
|
elm_interface_scrollable_hold_set(child, EINA_TRUE);
|
||||||
else
|
else
|
||||||
efl_ui_scrollable_scroll_hold_set(child, EINA_TRUE);
|
efl_ui_scrollable_scroll_hold_set(child, EINA_TRUE);
|
||||||
|
@ -2151,7 +2151,7 @@ _efl_ui_widget_scroll_hold_pop(Eo *obj, Elm_Widget_Smart_Data *sd)
|
||||||
{
|
{
|
||||||
if (elm_widget_is(child) && _elm_scrollable_is(child))
|
if (elm_widget_is(child) && _elm_scrollable_is(child))
|
||||||
{
|
{
|
||||||
if (elm_widget_is_legacy(obj))
|
if (elm_widget_is_legacy(child))
|
||||||
elm_interface_scrollable_hold_set(child, EINA_FALSE);
|
elm_interface_scrollable_hold_set(child, EINA_FALSE);
|
||||||
else
|
else
|
||||||
efl_ui_scrollable_scroll_hold_set(child, EINA_FALSE);
|
efl_ui_scrollable_scroll_hold_set(child, EINA_FALSE);
|
||||||
|
|
Loading…
Reference in New Issue