scroller: Fixed wrong widget call to non-widget object.

content can be a non-widget object.
This commit is contained in:
Daniel Juyung Seo 2014-03-20 02:13:03 +09:00
parent fc2f1d58d7
commit 77dfd41b76
1 changed files with 2 additions and 1 deletions

View File

@ -659,7 +659,8 @@ _elm_scroller_smart_content_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
if (content)
{
elm_widget_on_show_region_hook_set(content, _show_region_hook, obj);
if (elm_widget_is(content))
elm_widget_on_show_region_hook_set(content, _show_region_hook, obj);
elm_widget_sub_object_add(obj, content);
eo_do(obj, elm_interface_scrollable_content_set(content));