efl_ui_widget: silence warnings with clang.

Clang doesn't like dangling else.
This commit is contained in:
Alastair Poole 2018-06-22 09:11:32 +01:00
parent c3d2ba07bc
commit 91e146f108
1 changed files with 24 additions and 16 deletions

View File

@ -2654,10 +2654,12 @@ _efl_ui_widget_scroll_hold_push(Eo *obj, Elm_Widget_Smart_Data *sd)
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
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 (elm_widget_is_legacy(obj))
elm_interface_scrollable_hold_set(child, EINA_TRUE);
else
efl_ui_scrollable_scroll_hold_set(child, EINA_TRUE);
}
}
}
}
@ -2686,10 +2688,12 @@ _efl_ui_widget_scroll_hold_pop(Eo *obj, Elm_Widget_Smart_Data *sd)
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
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 (elm_widget_is_legacy(obj))
elm_interface_scrollable_hold_set(child, EINA_FALSE);
else
efl_ui_scrollable_scroll_hold_set(child, EINA_FALSE);
}
}
}
}
@ -2727,10 +2731,12 @@ _efl_ui_widget_scroll_freeze_push(Eo *obj, Elm_Widget_Smart_Data *sd)
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
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 (elm_widget_is_legacy(obj))
elm_interface_scrollable_freeze_set(child, EINA_TRUE);
else
efl_ui_scrollable_scroll_freeze_set(child, EINA_TRUE);
}
}
}
}
@ -2759,10 +2765,12 @@ _efl_ui_widget_scroll_freeze_pop(Eo *obj, Elm_Widget_Smart_Data *sd)
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
if (elm_widget_is_legacy(obj))
elm_interface_scrollable_freeze_set(child, EINA_FALSE);
else
efl_ui_scrollable_scroll_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);
}
}
}
}