efl_layout_group: remove all legacy usage from eo files

this takes the current generated output from eolian for legacy code in
evas and adds it to the tree, then removes legacy references from the
corresponding eo files. in the case where the entire eo file was for
a legacy object, that eo file has been removed from the tree

ref T7724

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8128
This commit is contained in:
Mike Blumenkrantz 2019-03-05 17:00:37 -05:00 committed by Cedric BAIL
parent b532721b1d
commit dd0890a0d7
7 changed files with 63 additions and 4 deletions

View File

@ -66,7 +66,11 @@ lib/edje/Edje.h \
lib/edje/Edje_Common.h \
lib/edje/Edje_Eo.h \
lib/edje/Edje_Legacy.h \
lib/edje/Edje_Edit.h
lib/edje/Edje_Edit.h \
lib/edje/efl_layout_group_eo.legacy.h
EXTRA_DIST2 += \
lib/edje/efl_layout_group_eo.legacy.c
nodist_installed_edjemainheaders_DATA = \
$(edje_eolian_h) \

View File

@ -3176,4 +3176,4 @@ typedef Efl_Canvas_Layout_Part_Type Edje_Part_Type;
*/
#include "efl_canvas_layout.eo.legacy.h"
#include "edje_edit.eo.legacy.h"
#include "efl_layout_group.eo.legacy.h"
#include "efl_layout_group_eo.legacy.h"

View File

@ -591,3 +591,4 @@ _efl_canvas_layout_efl_player_play_speed_get(const Eo *obj EINA_UNUSED, Edje *pd
#include "efl_layout_calc.eo.c"
#include "efl_layout_signal.eo.c"
#include "efl_layout_group.eo.c"
#include "efl_layout_group_eo.legacy.c"

View File

@ -89,7 +89,6 @@ interface @beta Efl.Layout.Group
Warning: Do not confuse this call with edje_file_data_get(), which
queries for a global EDC data field on an EDC declaration file.
]]
legacy: edje_object_data_get;
}
keys {
key: string; [[The data field's key string]]

View File

@ -0,0 +1,6 @@
EAPI const char *
edje_object_data_get(const Efl_Layout_Group *obj, const char *key)
{
return efl_layout_group_data_get(obj, key);
}

View File

@ -0,0 +1,48 @@
#ifndef _EFL_LAYOUT_GROUP_EO_LEGACY_H_
#define _EFL_LAYOUT_GROUP_EO_LEGACY_H_
#ifndef _EFL_LAYOUT_GROUP_EO_CLASS_TYPE
#define _EFL_LAYOUT_GROUP_EO_CLASS_TYPE
typedef Eo Efl_Layout_Group;
#endif
#ifndef _EFL_LAYOUT_GROUP_EO_TYPES
#define _EFL_LAYOUT_GROUP_EO_TYPES
#endif
/**
* @brief Retrives an EDC data field's value from a given Edje object's group.
*
* This function fetches an EDC data field's value, which is declared on the
* objects building EDC file, under its group. EDC data blocks are most
* commonly used to pass arbitrary parameters from an application's theme to
* its code.
*
* EDC data fields always hold strings as values, hence the return type of
* this function. Check the complete "syntax reference" for EDC files.
*
* This is how a data item is defined in EDC: collections { group { name:
* "a_group"; data { item: "key1" "value1"; item: "key2" "value2"; } } }
*
* @warning Do not confuse this call with edje_file_data_get(), which queries
* for a global EDC data field on an EDC declaration file.
*
* @param[in] obj The object.
* @param[in] key The data field's key string
*
* @return The data's value string.
*
* @since 1.21
*
* @ingroup (null)_Group
*/
EAPI const char *edje_object_data_get(const Efl_Layout_Group *obj, const char *key);
#endif

View File

@ -104,7 +104,8 @@ edje_header_src = [
'Edje_Common.h',
'Edje_Eo.h',
'Edje_Legacy.h',
'Edje_Edit.h'
'Edje_Edit.h',
'efl_layout_group_eo.legacy.h',
]
edje_src = [