elementary: move definition of Elm_App_View_State to elm_general.eot
authorVitor Sousa <vitorsousasilva@gmail.com>
Mon, 18 Jan 2016 18:20:59 +0000 (16:20 -0200)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 9 Feb 2016 15:34:37 +0000 (13:34 -0200)
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.

legacy/elementary/src/lib/elm_app_client_view.eo
legacy/elementary/src/lib/elm_app_common.h
legacy/elementary/src/lib/elm_app_server_view.eo
legacy/elementary/src/lib/elm_general.eot

index 81de5ee..7ff2bff 100644 (file)
@@ -7,7 +7,7 @@ class Elm.App_Client_View (Eo.Base)
             [[Get state of view]]
          }
          values {
-            state: Elm_App_View_State; [[state of view]]
+            state: Elm.App.View_State; [[state of view]]
          }
       }
       @property new_events {
index 2d37f70..8c25449 100644 (file)
@@ -1,24 +1,3 @@
-/**
- * @addtogroup App
- *
- * @{
- */
-
-/**
- * Elm_App_View_State
- */
-typedef enum
-{
-   ELM_APP_VIEW_STATE_UNKNOWN = 0,
-   ELM_APP_VIEW_STATE_LIVE,
-   ELM_APP_VIEW_STATE_PAUSED,
-   ELM_APP_VIEW_STATE_CLOSED,
-   ELM_APP_VIEW_STATE_SHALLOW
-} Elm_App_View_State;
-
-/**
- * @}
- */
 
 char *_dbus_package_to_path(const char *package);
 
index 416b373..a95abbe 100644 (file)
@@ -59,7 +59,7 @@ class Elm.App_Server_View (Eo.Base)
          get {
          }
          values {
-            ret: Elm_App_View_State;
+            ret: Elm.App.View_State;
          }
       }
       @property path {
index 6388b30..b175c9b 100644 (file)
@@ -119,3 +119,12 @@ enum Elm.Focus_Direction
    left,     [[ left direction ]]
 }
 
+enum Elm.App.View_State
+{
+   unknown = 0,
+   live,
+   paused,
+   closed,
+   shallow,
+}
+