jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=82e610032229b7d2cf71e7b8940fb5c10f67b8df

commit 82e610032229b7d2cf71e7b8940fb5c10f67b8df
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Aug 3 11:19:52 2017 +0900

    layout: Move Part_Alias struct to legacy
    
    Part aliases need to be handled differently in EO.
    
    Ref T5315
---
 src/lib/elementary/elm_layout.eo       | 17 -----------------
 src/lib/elementary/elm_layout_legacy.h | 29 +++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 17 deletions(-)

diff --git a/src/lib/elementary/elm_layout.eo b/src/lib/elementary/elm_layout.eo
index 4a13d85cb8..4e6695ff3d 100644
--- a/src/lib/elementary/elm_layout.eo
+++ b/src/lib/elementary/elm_layout.eo
@@ -1,22 +1,5 @@
 import edje_types;
 
-struct Elm.Layout_Part_Alias_Description
-{
-   [[
-     Elementary Layout-based widgets may declare part proxies, i.e., aliases
-     for real theme part names to expose to the API calls:
-     - elm_layout_text_set()
-     - elm_layout_text_get()
-     - elm_layout_content_set()
-     - elm_layout_content_get()
-     - elm_layout_content_unset()
-     and their equivalents. This list must be set on the "_smart_set_user()" 
function of inheriting widgets,
-     so that part aliasing is handled automatically for them.
-   ]]
-   alias: string; [[Alternate name for a given (real) part. Calls receiving 
this string as a part name will be translated to the string at 
Elm.Layout_Part_Proxies_Description::real_part]]
-   real_part: string; [[Target part name for the alias set on 
Elm.Layout_Part_Proxies_Description::real_part. An example of usage would be 
"default" on that field, with "elm.content.swallow" on this one]]
-}
-
 class Elm.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
                   Efl.Ui.View, Efl.Ui.Model.Connect, 
Efl.Ui.Model.Factory.Connect,
                   Efl.Canvas.Layout_Calc)
diff --git a/src/lib/elementary/elm_layout_legacy.h 
b/src/lib/elementary/elm_layout_legacy.h
index 3fd1058a69..a7b61d038d 100644
--- a/src/lib/elementary/elm_layout_legacy.h
+++ b/src/lib/elementary/elm_layout_legacy.h
@@ -1,4 +1,33 @@
 /**
+ * Elementary Layout-based widgets may declare part proxies, i.e., aliases for
+ * real theme part names to expose to the API calls:
+ * - elm_layout_text_set()
+ * - elm_layout_text_get()
+ * - elm_layout_content_set()
+ * - elm_layout_content_get()
+ * - elm_layout_content_unset()
+ * and their equivalents. This list must be set on the "_smart_set_user()"
+ * function of inheriting widgets, so that part aliasing is handled
+ * automatically for them.
+ *
+ * @deprecated Should not be used outside of EFL internal code.
+ */
+
+struct _Elm_Layout_Part_Alias_Description
+{
+  const char *alias; /**< Alternate name for a given (real) part. Calls
+                      * receiving this string as a part name will be translated
+                      * to the string at
+                      * Elm.Layout_Part_Proxies_Description::real_part */
+  const char *real_part; /**< Target part name for the alias set on
+                          * Elm.Layout_Part_Proxies_Description::real_part. An
+                          * example of usage would be "default" on that field,
+                          * with "elm.content.swallow" on this one */
+};
+
+typedef struct _Elm_Layout_Part_Alias_Description 
Elm_Layout_Part_Alias_Description;
+
+/**
  * Add a new layout to the parent
  *
  * @param parent The parent object

-- 


Reply via email to