felipealmeida pushed a commit to branch master.

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

commit 5b87356b774a3ed14e179137dbb216a704d61971
Author: Vitor Sousa <vitorsousasi...@gmail.com>
Date:   Tue Jan 19 18:45:45 2016 -0200

    elm_calendar,elm_datetime: move struct tm typedefs to .eo files
    
    Move elm_calendar and elm_datetime struct tm typedefs to theirs
    respective .eo files.
    Use Ecore.Time, an alias to struct tm, to refer to this type in the
    .eo files.
    
    Use namespaced names for these typedefs, in order to follow Eolian
    standards.
---
 src/lib/elm_calendar.eo       |  8 ++++----
 src/lib/elm_calendar_common.h |  2 --
 src/lib/elm_datetime.eo       | 12 ++++++------
 src/lib/elm_datetime_common.h |  2 --
 4 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/src/lib/elm_calendar.eo b/src/lib/elm_calendar.eo
index 6ab7afe..6c5a63e 100644
--- a/src/lib/elm_calendar.eo
+++ b/src/lib/elm_calendar.eo
@@ -306,7 +306,7 @@ class Elm.Calendar (Elm.Layout, 
Elm.Interface_Atspi_Widget_Action)
            \@ref calendar_example_04
          ]]
          params {
-            @in selected_time: Elm_Calendar_Time *; [[A tm struct to represent 
the selected date.]]
+            @in selected_time: Efl.Time *; [[A tm struct to represent the 
selected date.]]
          }
       }
       selected_time_get @const {
@@ -323,7 +323,7 @@ class Elm.Calendar (Elm.Layout, 
Elm.Interface_Atspi_Widget_Action)
          ]]
          return: bool;
          params {
-            @inout selected_time: Elm_Calendar_Time; [[A tm struct to point to 
selected date.]]
+            @inout selected_time: Efl.Time; [[A tm struct to point to selected 
date.]]
          }
       }
       mark_add {
@@ -368,7 +368,7 @@ class Elm.Calendar (Elm.Layout, 
Elm.Interface_Atspi_Widget_Action)
             @in mark_type: const(char)*; [[A string used to define the type of 
mark. It will be
             emitted to the theme, that should display a related modification 
on these
             days representation.]]
-            @in mark_time: Elm_Calendar_Time *; [[A time struct to represent 
the date of inclusion of the
+            @in mark_time: Efl.Time *; [[A time struct to represent the date 
of inclusion of the
             mark. For marks that repeats it will just be displayed after the 
inclusion
             date in the calendar.]]
             @in repeat: Elm.Calendar.Mark.Repeat.Type; [[Repeat the event 
following this periodicity. Can be a unique
@@ -425,7 +425,7 @@ class Elm.Calendar (Elm.Layout, 
Elm.Interface_Atspi_Widget_Action)
          ]]
          return: bool;
          params {
-            @inout displayed_time: Elm_Calendar_Time; [[A tm struct to point 
to displayed date.]]
+            @inout displayed_time: Efl.Time; [[A tm struct to point to 
displayed date.]]
          }
       }
    }
diff --git a/src/lib/elm_calendar_common.h b/src/lib/elm_calendar_common.h
index 08f52f8..52381dc 100644
--- a/src/lib/elm_calendar_common.h
+++ b/src/lib/elm_calendar_common.h
@@ -15,8 +15,6 @@
  */
 typedef char * (*Elm_Calendar_Format_Cb)(struct tm *stime);
 
-/* temporary until better solution is found: is here because of eolian */
-typedef struct tm Elm_Calendar_Time;
 
 /**
  * @}
diff --git a/src/lib/elm_datetime.eo b/src/lib/elm_datetime.eo
index 811e8f1..bb3230e 100644
--- a/src/lib/elm_datetime.eo
+++ b/src/lib/elm_datetime.eo
@@ -151,7 +151,7 @@ class Elm.Datetime (Elm.Layout)
 
          return: bool; [[$true if minimum value is accepted.]]
          params {
-            @in mintime: const(Elm_Datetime_Time)*; [[Time structure 
containing the minimum time value.]]
+            @in mintime: const(Efl.Time)*; [[Time structure containing the 
minimum time value.]]
          }
       }
       value_min_get @const {
@@ -172,7 +172,7 @@ class Elm.Datetime (Elm.Layout)
          ]]
          return: bool; [[$true if minimum value is successfully returned.]]
          params {
-            @inout mintime: Elm_Datetime_Time; [[Time structure.]]
+            @inout mintime: Efl.Time; [[Time structure.]]
          }
       }
       value_set {
@@ -193,7 +193,7 @@ class Elm.Datetime (Elm.Layout)
          ]]
          return: bool; [[$true if current time is set successfully.]]
          params {
-            @in newtime: const(Elm_Datetime_Time)*; [[Time structure filled 
with values to be set.]]
+            @in newtime: const(Efl.Time)*; [[Time structure filled with values 
to be set.]]
          }
       }
       value_get @const {
@@ -214,7 +214,7 @@ class Elm.Datetime (Elm.Layout)
          ]]
          return: bool; [[$true if current time is returned successfully.]]
          params {
-            @inout currtime: Elm_Datetime_Time; [[Time structure.]]
+            @inout currtime: Efl.Time; [[Time structure.]]
          }
       }
       field_visible_set {
@@ -260,7 +260,7 @@ class Elm.Datetime (Elm.Layout)
          ]]
          return: bool; [[$true if maximum value is accepted.]]
          params {
-            @in maxtime: const(Elm_Datetime_Time)*; [[Time structure 
containing the maximum time value.]]
+            @in maxtime: const(Efl.Time)*; [[Time structure containing the 
maximum time value.]]
          }
       }
       value_max_get @const {
@@ -281,7 +281,7 @@ class Elm.Datetime (Elm.Layout)
          ]]
          return: bool; [[$true if maximum value is returned successfully.]]
          params {
-            @inout maxtime: Elm_Datetime_Time; [[Time structure containing the 
maximum time value.]]
+            @inout maxtime: Efl.Time; [[Time structure containing the maximum 
time value.]]
          }
       }
    }
diff --git a/src/lib/elm_datetime_common.h b/src/lib/elm_datetime_common.h
index 0115e0e..a2bd98d 100644
--- a/src/lib/elm_datetime_common.h
+++ b/src/lib/elm_datetime_common.h
@@ -3,8 +3,6 @@
  *
  * @{
  */
-/* temporary until better solution is found: is here because of eolian */
-typedef struct tm Elm_Datetime_Time;
 
 /**
  * @}

-- 


Reply via email to