yakov pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=10b56f78667f77db5e14879d53902efebc55103b

commit 10b56f78667f77db5e14879d53902efebc55103b
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue Jul 7 17:14:07 2015 +0300

    elm_gengrid: move enums to elm_gengrid_item.eo
    
    Move enums from elm_gengrid_common.h to elm_gengrid_item.eo in order to 
make them
    more accessible for bindings.
---
 src/lib/elm_gengrid_common.h | 30 ------------------------------
 src/lib/elm_gengrid_item.eo  | 33 ++++++++++++++++++++++++++++++++-
 2 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/src/lib/elm_gengrid_common.h b/src/lib/elm_gengrid_common.h
index a38717f..7b919cf 100644
--- a/src/lib/elm_gengrid_common.h
+++ b/src/lib/elm_gengrid_common.h
@@ -1,35 +1,5 @@
 #define ELM_GENGRID_ITEM_CLASS_VERSION ELM_GEN_ITEM_CLASS_VERSION
 #define ELM_GENGRID_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_HEADER
-
-/**
- * Defines where to position the item in the genlist.
- *
- * @ingroup Gengrid
- */
-typedef enum
-{
-   ELM_GENGRID_ITEM_SCROLLTO_NONE = 0,   /**< no scrollto */
-   ELM_GENGRID_ITEM_SCROLLTO_IN = (1 << 0),   /**< to the nearest viewport */
-   ELM_GENGRID_ITEM_SCROLLTO_TOP = (1 << 1),   /**< to the top of viewport */
-   ELM_GENGRID_ITEM_SCROLLTO_MIDDLE = (1 << 2)   /**< to the middle of 
viewport */
-} Elm_Gengrid_Item_Scrollto_Type;
-
-
-/**
- * Defines the type of the item part
- * Used while updating item's parts
- * It can be used at updating multi fields.
- *
- * @ingroup Gengrid
- */
-typedef enum
-{
-   ELM_GENGRID_ITEM_FIELD_ALL = 0,
-   ELM_GENGRID_ITEM_FIELD_TEXT = (1 << 0),
-   ELM_GENGRID_ITEM_FIELD_CONTENT = (1 << 1),
-   ELM_GENGRID_ITEM_FIELD_STATE = (1 << 2)
-} Elm_Gengrid_Item_Field_Type;
-
 /**
  * @see Elm_Gen_Item_Class
  */
diff --git a/src/lib/elm_gengrid_item.eo b/src/lib/elm_gengrid_item.eo
index 913199c..07df3a0 100644
--- a/src/lib/elm_gengrid_item.eo
+++ b/src/lib/elm_gengrid_item.eo
@@ -1,5 +1,36 @@
 import elm_general;
 
+enum Elm.Gengrid.Item.Scrollto_Type
+{
+   [[
+      Defines where to position the item in the genlist.
+
+      @ingroup Gengrid
+   ]]
+   legacy: elm_gengrid_item_scrollto;
+   none = 0,   [[No scrollto.]]
+   in = (1 << 0),   [[To the nearest viewport.]]
+   top = (1 << 1),   [[To the top of viewport.]]
+   middle = (1 << 2)   [[To the middle of viewport.]]
+}
+
+enum Elm.Gengrid.Item.Field_Type
+{
+   [[
+      Defines the type of the item part
+      Used while updating item's parts
+      It can be used at updating multi fields.
+
+      @ingroup Gengrid
+   ]]
+   legacy: elm_gengrid_item_field;
+   all = 0,
+   text = (1 << 0),
+   content = (1 << 1),
+   state = (1 << 2)
+}
+
+
 class Elm.Gengrid_Item(Elm.Widget_Item)
 {
       eo_prefix: elm_obj_gengrid_item;
@@ -229,7 +260,7 @@ class Elm.Gengrid_Item(Elm.Widget_Item)
                  */
                 params {
                      @in parts: const (char) *; /*@ The name of item's part */
-                     @in itf: Elm_Gengrid_Item_Field_Type; /*@ The type of 
item's part type */
+                     @in itf: Elm.Gengrid.Item.Field_Type; /*@ The type of 
item's part type */
                 }
            }
            item_class_update {

-- 


Reply via email to