summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2016-01-19 18:45:45 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-02-09 14:13:59 -0200
commit5b87356b774a3ed14e179137dbb216a704d61971 (patch)
tree532ed5df5b0fbeafcd6efd5ba9f7bb2127e763f6
parentd5eb188f59542ba0737b8317f8fa97b5ee66baf9 (diff)
downloadelementary-5b87356b774a3ed14e179137dbb216a704d61971.tar.gz
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.
-rw-r--r--src/lib/elm_calendar.eo8
-rw-r--r--src/lib/elm_calendar_common.h2
-rw-r--r--src/lib/elm_datetime.eo12
-rw-r--r--src/lib/elm_datetime_common.h2
4 files changed, 10 insertions, 14 deletions
diff --git a/src/lib/elm_calendar.eo b/src/lib/elm_calendar.eo
index 6ab7afe5b..6c5a63eb1 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 08f52f875..52381dce0 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 811e8f12a..bb3230e6b 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 0115e0e17..a2bd98d46 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;
/**
* @}