efl_ui/scrollable_content: be more explicit about scrollable_content_get()

Summary:
always return NULL when an internal text object exists to avoid exposing
internal objects; this is an abstraction mechanism which should not be
extended or relied upon

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9910
This commit is contained in:
Mike Blumenkrantz 2019-09-13 18:49:03 +02:00 committed by Xavi Artigas
parent c6dd9d2a64
commit 51265dea6b
2 changed files with 3 additions and 0 deletions

View File

@ -206,6 +206,7 @@ _efl_ui_widget_scrollable_content_scrollable_content_set(Eo *obj, Efl_Ui_Widget_
EOLIAN static Eo *
_efl_ui_widget_scrollable_content_scrollable_content_get(const Eo *obj EINA_UNUSED, Efl_Ui_Widget_Scrollable_Content_Data *pd)
{
if (pd->label) return NULL;
if (!pd->scroller) return NULL;
return efl_content_get(pd->scroller);
}

View File

@ -43,6 +43,8 @@ mixin @beta Efl.Ui.Widget_Scrollable_Content requires Efl.Object
@property scrollable_content {
[[This is the content which will be placed in the internal scroller.
If a scrollable text string is set, this will return $NULL.
@since 1.23
]]
set {