yakov pushed a commit to branch master.

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

commit 232a87a40a2731e071eee3a2748eda491f5f454c
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Mon Jul 6 16:54:12 2015 +0300

    elm_fileselector: Move enums to elm_interface_fileselector.eo
    
    Move enums from elm_fileselector_common.h to elm_interface_fileselector.eo
    in order to make them more accessible for bindings.
    Include generated elm_interface_fileselector.eo.legacy.h
    into elm_fileselector_legacy.h
---
 src/lib/elc_fileselector_common.h     | 24 ------------------------
 src/lib/elc_fileselector_legacy.h     |  1 +
 src/lib/elm_interface_fileselector.eo | 30 ++++++++++++++++++++++++++++--
 3 files changed, 29 insertions(+), 26 deletions(-)

diff --git a/src/lib/elc_fileselector_common.h 
b/src/lib/elc_fileselector_common.h
index 9c5bd87..2202a96 100644
--- a/src/lib/elc_fileselector_common.h
+++ b/src/lib/elc_fileselector_common.h
@@ -1,27 +1,3 @@
-/**
- * Defines how a file selector widget is to layout its contents
- * (file system entries).
- */
-typedef enum
-{
-   ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
-   ELM_FILESELECTOR_GRID, /**< layout as a grid */
-   ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
-} Elm_Fileselector_Mode;
-
-typedef enum
-{
-   ELM_FILESELECTOR_SORT_BY_FILENAME_ASC = 0,
-   ELM_FILESELECTOR_SORT_BY_FILENAME_DESC,
-   ELM_FILESELECTOR_SORT_BY_TYPE_ASC,
-   ELM_FILESELECTOR_SORT_BY_TYPE_DESC,
-   ELM_FILESELECTOR_SORT_BY_SIZE_ASC,
-   ELM_FILESELECTOR_SORT_BY_SIZE_DESC,
-   ELM_FILESELECTOR_SORT_BY_MODIFIED_ASC,
-   ELM_FILESELECTOR_SORT_BY_MODIFIED_DESC,
-   ELM_FILESELECTOR_SORT_LAST /**< sentinel (helper) value, not used */
-} Elm_Fileselector_Sort;
-
 typedef Eina_Bool (*Elm_Fileselector_Filter_Func)(const char *path, /**< File 
path */
                                                   Eina_Bool dir, /**< A flag 
to show if path is a directory or not. True if the path is a directory. */
                                                   void *data /**< A user data 
that was given by elm_fileselector_custom_filter_append. */);
diff --git a/src/lib/elc_fileselector_legacy.h 
b/src/lib/elc_fileselector_legacy.h
index 0aa5b79..88c1ef3 100644
--- a/src/lib/elc_fileselector_legacy.h
+++ b/src/lib/elc_fileselector_legacy.h
@@ -1,3 +1,4 @@
+#include "elm_interface_fileselector.eo.legacy.h"
 /**
  * Add a new file selector widget to the given parent Elementary
  * (container) object
diff --git a/src/lib/elm_interface_fileselector.eo 
b/src/lib/elm_interface_fileselector.eo
index dc95e62..4c52c56 100644
--- a/src/lib/elm_interface_fileselector.eo
+++ b/src/lib/elm_interface_fileselector.eo
@@ -1,3 +1,29 @@
+enum Elm.Fileselector.Mode
+{
+   [[
+      @addtogroup Fileselector
+      Defines how a file selector widget is to layout its contents
+      (file system entries).
+   ]]
+   legacy: elm_fileselector;
+   list = 0, [[Layout as a list.]]
+   grid, [[Layout as a grid.]]
+   last [[Sentinel (helper) value, not used.]]
+}
+
+enum Elm.Fileselector.Sort
+{
+   by_filename_asc = 0,
+   by_filename_desc,
+   by_type_asc,
+   by_type_desc,
+   by_size_asc,
+   by_size_desc,
+   by_modified_asc,
+   by_modified_desc,
+   last [[Sentinel (helper) value, not used.]]
+}
+
 interface Elm_Interface_Fileselector ()
 {
    legacy_prefix: null;
@@ -57,7 +83,7 @@ interface Elm_Interface_Fileselector ()
             /*@ Get the sort method of the file selector widget. */
          }
          values {
-            sort: Elm_Fileselector_Sort;
+            sort: Elm.Fileselector.Sort;
          }
       }
       @property multi_select {
@@ -101,7 +127,7 @@ interface Elm_Interface_Fileselector ()
             /*@ Get the mode in which a given file selector widget is 
displaying */
          }
          values {
-            mode: Elm_Fileselector_Mode;
+            mode: Elm.Fileselector.Mode;
          }
       }
       @property is_save {

-- 


Reply via email to