From dda18948ae762d7a37c0035a44b69f44ec615214 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 20 Nov 2017 15:41:07 +0900 Subject: efl: Split Efl.Container and Efl.Content When I first implemented the Efl.Container interface I made a mistake of mixing "single slot" content API's with "multiple children" content API's. This should fix that, by separating API's that are for a single part and those that deal with a list of children. Efl.Content: Single slot. This will be used a lot by efl_part() objects, and for the default content of widgets (eg. the window content). Efl.Container: Multiple children. Used by lists, boxes, layouts (edje/elm), etc... I didn't see any class that implemented both interfaces (note: Layout implements Container and Button implements Content, so technically Button implements both through inheritance). For now the eo_prefix is not changed in Efl.Container. I wonder if it should be reset (to efl_container) or not. This would only affect the C API. Ref T5328 --- src/lib/elementary/elm_flip_part.eo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/elementary/elm_flip_part.eo') diff --git a/src/lib/elementary/elm_flip_part.eo b/src/lib/elementary/elm_flip_part.eo index 9e5c1e8495..506f28e499 100644 --- a/src/lib/elementary/elm_flip_part.eo +++ b/src/lib/elementary/elm_flip_part.eo @@ -1,10 +1,10 @@ -class Elm.Flip.Part (Efl.Object, Efl.Container) +class Elm.Flip.Part (Efl.Object, Efl.Content) { [[Elementary flip internal part class]] data: null; implements { Efl.Object.destructor; - Efl.Container.content { get; set; } - Efl.Container.content_unset; + Efl.Content.content { get; set; } + Efl.Content.content_unset; } } -- cgit v1.2.1