elm/genlist - Fix bounce option getter.
Try to get the bounce option from the internal els_scroller, and also add checks on the els_scroller api to see if the arguments were given. SVN revision: 61592
This commit is contained in:
parent
c7eefd542c
commit
e42e50e434
|
@ -5474,7 +5474,7 @@ elm_genlist_bounce_get(const Evas_Object *obj,
|
|||
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
if (!wd) return;
|
||||
elm_smart_scroller_bounce_allow_get(obj, h_bounce, v_bounce);
|
||||
elm_smart_scroller_bounce_allow_get(wd->scr, h_bounce, v_bounce);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1277,8 +1277,8 @@ void
|
|||
elm_smart_scroller_bounce_allow_get(const Evas_Object *obj, Eina_Bool *horiz, Eina_Bool *vert)
|
||||
{
|
||||
API_ENTRY return;
|
||||
*horiz = sd->bounce_horiz;
|
||||
*vert = sd->bounce_vert;
|
||||
if (horiz) *horiz = sd->bounce_horiz;
|
||||
if (vert) *vert = sd->bounce_vert;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue