yakov pushed a commit to branch master. http://git.enlightenment.org/tools/erigo.git/commit/?id=7c6c26af7a555e243f256e4b342212ee2e8dc4e3
commit 7c6c26af7a555e243f256e4b342212ee2e8dc4e3 Author: Yakov Goldberg <yako...@samsung.com> Date: Wed Nov 25 15:52:32 2015 +0200 Remove division to units and structs --- src/bin/gui/editor.c | 55 +++++++++++++++++++--------------------------------- 1 file changed, 20 insertions(+), 35 deletions(-) diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c index db76f15..a91b231 100644 --- a/src/bin/gui/editor.c +++ b/src/bin/gui/editor.c @@ -43,41 +43,26 @@ typedef struct Eo *eo_cur; Eina_Bool packed; /* Need this, because no API to check if object is packed into table and unpack causes error message. */ - union - { - /* Box packing data. */ - struct - { - int box_pack_idx; - }; - /* Table packing data. */ - struct - { - int cell_part_x; /* Which fifth part of sell was selected*/ - int cell_part_y; /* Used in order to check if need to repack or not. */ - - int table_w; /* Table width/height. Calculate it once in the beginning. */ - int table_h; - - int table_pack_x; - int table_pack_y; - Eina_List *table_borders; - }; - /* Layout packing data. */ - struct - { - Eid *drop_instead_obj; - Object_Container_Item *drop_obj_item; - const char *part; - Evas_Coord ox, ow, oy, oh; - }; - /* Naviframe packing data. */ - struct - { - Eid *drop_instead_item_obj; - Item_Container_Item *drop_item_cont_item; - }; - }; + /* Box packing data. */ + int box_pack_idx; + /* Table packing data. */ + int cell_part_x; /* Which fifth part of sell was selected*/ + int cell_part_y; /* Used in order to check if need to repack or not. */ + + int table_w; /* Table width/height. Calculate it once in the beginning. */ + int table_h; + + int table_pack_x; + int table_pack_y; + Eina_List *table_borders; + /* Layout packing data. */ + Eid *drop_instead_obj; + Object_Container_Item *drop_obj_item; + const char *part; + Evas_Coord ox, ow, oy, oh; + /* Naviframe packing data. */ + Eid *drop_instead_item_obj; + Item_Container_Item *drop_item_cont_item; int pointer_x; int pointer_y; --