yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=d8031f06b8fb27df582c849703ce265652139f68

commit d8031f06b8fb27df582c849703ce265652139f68
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Thu Nov 19 13:15:16 2015 +0200

    Refactoring structure DnD_Main_Obj_Info
---
 src/bin/gui/editor.c | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index 107d3bf..2b167e5 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -41,20 +41,29 @@
 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. */
-   int box_pack_idx;
-
-   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. */
+   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_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;
+             int table_pack_x;
+             int table_pack_y;
+             Eina_List *table_borders;
+          };
+     };
 
    int pointer_x;
    int pointer_y;

-- 


Reply via email to