summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2016-01-18 16:20:59 -0200
committerVitor Sousa <vitorsousasilva@gmail.com>2016-02-01 12:33:18 -0200
commit329fa7d9708c05f59be937220e71cdc5f0fcf3d2 (patch)
treebfe72b37af85143b242378953b665954e9574a0f
parent1da591f1b0d6038d9ccc498149be1c4e4b93e166 (diff)
elementary: move definition of Elm_App_View_State to elm_general.eot
Move the definition of the enumeration Elm_App_View_State from elm_app_common.h to elm_general.eot, and give it the the Eolian name: Elm.App.View_State. Replace Elm_App_View_State with Elm.App.View_State in elm_app_client_view.eo and elm_app_server_view.eo.
-rw-r--r--src/lib/elm_app_client_view.eo2
-rw-r--r--src/lib/elm_app_common.h21
-rw-r--r--src/lib/elm_app_server_view.eo2
-rw-r--r--src/lib/elm_general.eot9
4 files changed, 11 insertions, 23 deletions
diff --git a/src/lib/elm_app_client_view.eo b/src/lib/elm_app_client_view.eo
index 81de5eecc..7ff2bff31 100644
--- a/src/lib/elm_app_client_view.eo
+++ b/src/lib/elm_app_client_view.eo
@@ -7,7 +7,7 @@ class Elm.App_Client_View (Eo.Base)
7 [[Get state of view]] 7 [[Get state of view]]
8 } 8 }
9 values { 9 values {
10 state: Elm_App_View_State; [[state of view]] 10 state: Elm.App.View_State; [[state of view]]
11 } 11 }
12 } 12 }
13 @property new_events { 13 @property new_events {
diff --git a/src/lib/elm_app_common.h b/src/lib/elm_app_common.h
index 2d37f701c..8c2544980 100644
--- a/src/lib/elm_app_common.h
+++ b/src/lib/elm_app_common.h
@@ -1,24 +1,3 @@
1/**
2 * @addtogroup App
3 *
4 * @{
5 */
6
7/**
8 * Elm_App_View_State
9 */
10typedef enum
11{
12 ELM_APP_VIEW_STATE_UNKNOWN = 0,
13 ELM_APP_VIEW_STATE_LIVE,
14 ELM_APP_VIEW_STATE_PAUSED,
15 ELM_APP_VIEW_STATE_CLOSED,
16 ELM_APP_VIEW_STATE_SHALLOW
17} Elm_App_View_State;
18
19/**
20 * @}
21 */
22 1
23char *_dbus_package_to_path(const char *package); 2char *_dbus_package_to_path(const char *package);
24 3
diff --git a/src/lib/elm_app_server_view.eo b/src/lib/elm_app_server_view.eo
index 416b37316..a95abbe8d 100644
--- a/src/lib/elm_app_server_view.eo
+++ b/src/lib/elm_app_server_view.eo
@@ -59,7 +59,7 @@ class Elm.App_Server_View (Eo.Base)
59 get { 59 get {
60 } 60 }
61 values { 61 values {
62 ret: Elm_App_View_State; 62 ret: Elm.App.View_State;
63 } 63 }
64 } 64 }
65 @property path { 65 @property path {
diff --git a/src/lib/elm_general.eot b/src/lib/elm_general.eot
index 6388b30fc..b175c9b35 100644
--- a/src/lib/elm_general.eot
+++ b/src/lib/elm_general.eot
@@ -119,3 +119,12 @@ enum Elm.Focus_Direction
119 left, [[ left direction ]] 119 left, [[ left direction ]]
120} 120}
121 121
122enum Elm.App.View_State
123{
124 unknown = 0,
125 live,
126 paused,
127 closed,
128 shallow,
129}
130