yakov pushed a commit to branch master.

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

commit dbf1d9cc06349c4e7c967ee04c8e614dc40d6e68
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Wed Jul 8 12:18:03 2015 +0300

    elm_label: Move enums to elm_label.eo
    
    Move enums from elm_label_common.h to elm_label.eo in order to make them
    more accessible for bindings. Delete elm_label_common.h.
---
 src/lib/Makefile.am        |  1 -
 src/lib/elm_label.eo       | 13 ++++++++++++-
 src/lib/elm_label.h        |  1 -
 src/lib/elm_label_common.h | 19 -------------------
 4 files changed, 12 insertions(+), 22 deletions(-)

diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index a098a4f..6fc31ff 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -259,7 +259,6 @@ elm_inwin.h \
 elm_inwin_eo.h \
 elm_inwin_legacy.h \
 elm_label.h \
-elm_label_common.h \
 elm_label_eo.h \
 elm_label_legacy.h \
 elm_layout.h \
diff --git a/src/lib/elm_label.eo b/src/lib/elm_label.eo
index a06e0ff..4ec9d49 100644
--- a/src/lib/elm_label.eo
+++ b/src/lib/elm_label.eo
@@ -1,3 +1,14 @@
+enum Elm.Label.Slide_Mode
+{
+   [[
+     @addtogroup Label
+     Slide mode of a label widget
+   ]]
+   none = 0, [[No slide effect.]]
+   auto, [[Slide only if the label area is bigger than the text width length.]]
+   always [[Slide always.]]
+}
+
 class Elm.Label (Elm.Layout)
 {
    eo_prefix: elm_obj_label;
@@ -89,7 +100,7 @@ class Elm.Label (Elm.Layout)
             @ingroup Label */
          }
          values {
-            mode: Elm_Label_Slide_Mode; /*@ The slide mode */
+            mode: Elm.Label.Slide_Mode; /*@ The slide mode */
          }
       }
       @property slide_duration {
diff --git a/src/lib/elm_label.h b/src/lib/elm_label.h
index 3396bf0..d6187ef 100644
--- a/src/lib/elm_label.h
+++ b/src/lib/elm_label.h
@@ -39,7 +39,6 @@
  * See @ref tutorial_label for a demonstration of how to use a label widget.
  * @{
  */
-#include "elm_label_common.h"
 #ifdef EFL_EO_API_SUPPORT
 #include "elm_label_eo.h"
 #endif
diff --git a/src/lib/elm_label_common.h b/src/lib/elm_label_common.h
deleted file mode 100644
index d5d7cff..0000000
--- a/src/lib/elm_label_common.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * @addtogroup Label
- *
- * @{
- */
-
-/**
- * Slide mode of a label widget
- */
-typedef enum
-{
-   ELM_LABEL_SLIDE_MODE_NONE = 0, /**< no slide effect */
-   ELM_LABEL_SLIDE_MODE_AUTO, /**< slide only if the label area is bigger than 
the text width length */
-   ELM_LABEL_SLIDE_MODE_ALWAYS /**< slide always */
-} Elm_Label_Slide_Mode;
-
-/**
- * @}
- */

-- 


Reply via email to