yakov pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=3f8cb1187c874dbea7eab5b070253b2c6f23fd8f

commit 3f8cb1187c874dbea7eab5b070253b2c6f23fd8f
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Mon Jul 6 18:31:07 2015 +0300

    elm_popup: Move enums to elm_popup.eo
    
    Move enums from elc_popup_common.h to elm_popup.eo in order to make them
    more accessible for bindings. Delete elc_popup_common.h.
---
 src/lib/Makefile.am        |  1 -
 src/lib/elc_popup.h        |  1 -
 src/lib/elc_popup_common.h | 24 ------------------------
 src/lib/elm_popup.eo       | 26 +++++++++++++++++++++++++-
 4 files changed, 25 insertions(+), 27 deletions(-)

diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 57067e4..3d2d7db 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -135,7 +135,6 @@ elc_naviframe_common.h \
 elc_popup.h \
 elc_popup_eo.h \
 elc_popup_legacy.h \
-elc_popup_common.h \
 elm_access.h \
 elm_actionslider.h \
 elm_actionslider_eo.h \
diff --git a/src/lib/elc_popup.h b/src/lib/elc_popup.h
index 5183a6f..b58af5a 100644
--- a/src/lib/elc_popup.h
+++ b/src/lib/elc_popup.h
@@ -117,7 +117,6 @@
  * @li @ref popup_example_03_c
  */
 
-#include "elc_popup_common.h"
 #ifdef EFL_EO_API_SUPPORT
 #include "elc_popup_eo.h"
 #endif
diff --git a/src/lib/elc_popup_common.h b/src/lib/elc_popup_common.h
deleted file mode 100644
index 82cf45e..0000000
--- a/src/lib/elc_popup_common.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @brief Possible orient values for popup.
- *
- * These values should be used in conjunction to elm_popup_orient_set() to
- * set the position in which the popup should appear(relative to its parent)
- * and in conjunction with elm_popup_orient_get() to know where the popup
- * is appearing.
- *
- * @ingroup Popup
- */
-typedef enum
-{
-   ELM_POPUP_ORIENT_TOP = 0, /**< Popup should appear in the top of parent, 
default */
-   ELM_POPUP_ORIENT_CENTER, /**< Popup should appear in the center of parent */
-   ELM_POPUP_ORIENT_BOTTOM, /**< Popup should appear in the bottom of parent */
-   ELM_POPUP_ORIENT_LEFT, /**< Popup should appear in the left of parent */
-   ELM_POPUP_ORIENT_RIGHT, /**< Popup should appear in the right of parent */
-   ELM_POPUP_ORIENT_TOP_LEFT, /**< Popup should appear in the top left of 
parent */
-   ELM_POPUP_ORIENT_TOP_RIGHT, /**< Popup should appear in the top right of 
parent */
-   ELM_POPUP_ORIENT_BOTTOM_LEFT, /**< Popup should appear in the bottom left 
of parent */
-   ELM_POPUP_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom 
right of parent */
-   ELM_POPUP_ORIENT_LAST /**< Sentinel value, @b don't use */
- } Elm_Popup_Orient;
-
diff --git a/src/lib/elm_popup.eo b/src/lib/elm_popup.eo
index 3d6b64f..d3c16b2 100644
--- a/src/lib/elm_popup.eo
+++ b/src/lib/elm_popup.eo
@@ -1,3 +1,27 @@
+enum Elm.Popup.Orient
+{
+   [[
+     @brief Possible orient values for popup.
+     These values should be used in conjunction to elm_popup_orient_set() to
+     set the position in which the popup should appear(relative to its parent)
+     and in conjunction with elm_popup_orient_get() to know where the popup
+     is appearing.
+     @ingroup Popup
+   ]]
+
+   top = 0, [[Popup should appear in the top of parent, default.]]
+   center, [[Popup should appear in the center of parent.]]
+   bottom, [[Popup should appear in the bottom of parent.]]
+   left, [[Popup should appear in the left of parent.]]
+   right, [[Popup should appear in the right of parent.]]
+   top_left, [[Popup should appear in the top left of parent.]]
+   top_right, [[Popup should appear in the top right of parent.]]
+   bottom_left, [[Popup should appear in the bottom left of parent.]]
+   bottom_right, [[Notify should appear in the bottom right of parent.]]
+   last [[Sentinel value, @b don't use.]]
+}
+
+
 class Elm.Popup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
 {
    eo_prefix: elm_obj_popup;
@@ -97,7 +121,7 @@ class Elm.Popup (Elm.Layout, 
Elm_Interface_Atspi_Widget_Action)
             @see Elm_Popup_Orient */
          }
          values {
-            orient: Elm_Popup_Orient; /*@ the orientation of the popup */
+            orient: Elm.Popup.Orient; /*@ the orientation of the popup */
          }
       }
       @property timeout {

-- 


Reply via email to