summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2016-01-19 18:45:45 -0200
committerVitor Sousa <vitorsousasilva@gmail.com>2016-02-01 12:33:18 -0200
commit01688f307f69545ee3608ca70e1f25b4d0f0f5f9 (patch)
tree80a15457ad86d113a532fcd98f58e7d712289eee
parent329fa7d9708c05f59be937220e71cdc5f0fcf3d2 (diff)
downloadelementary-01688f307f69545ee3608ca70e1f25b4d0f0f5f9.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.eo10
-rw-r--r--src/lib/elm_calendar_common.h3
-rw-r--r--src/lib/elm_datetime.eo14
-rw-r--r--src/lib/elm_datetime_common.h2
4 files changed, 14 insertions, 15 deletions
diff --git a/src/lib/elm_calendar.eo b/src/lib/elm_calendar.eo
index ef7883f46..8c750b500 100644
--- a/src/lib/elm_calendar.eo
+++ b/src/lib/elm_calendar.eo
@@ -1,3 +1,5 @@
+type Elm.Calendar.Time: Ecore.Time;
+
enum Elm.Calendar.Mark.Repeat.Type
{
[[
@@ -301,7 +303,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: Elm.Calendar.Time *; [[A tm struct to represent the selected date.]]
}
}
selected_time_get @const {
@@ -318,7 +320,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: Elm.Calendar.Time; [[A tm struct to point to selected date.]]
}
}
mark_add {
@@ -363,7 +365,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: Elm.Calendar.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
@@ -405,7 +407,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: Elm.Calendar.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 5d50f6e76..f043ca9c8 100644
--- a/src/lib/elm_calendar_common.h
+++ b/src/lib/elm_calendar_common.h
@@ -31,9 +31,6 @@ typedef char * (*Elm_Calendar_Format_Cb)(struct tm *stime);
*/
EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark);
-/* 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..2d4d202fe 100644
--- a/src/lib/elm_datetime.eo
+++ b/src/lib/elm_datetime.eo
@@ -1,3 +1,5 @@
+type Elm.Datetime.Time: Ecore.Time;
+
enum Elm.Datetime.Field_Type
{
[[Identifies a Datetime field, The widget supports 6 fields : Year, month,
@@ -151,7 +153,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(Elm.Datetime.Time)*; [[Time structure containing the minimum time value.]]
}
}
value_min_get @const {
@@ -172,7 +174,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: Elm.Datetime.Time; [[Time structure.]]
}
}
value_set {
@@ -193,7 +195,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(Elm.Datetime.Time)*; [[Time structure filled with values to be set.]]
}
}
value_get @const {
@@ -214,7 +216,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: Elm.Datetime.Time; [[Time structure.]]
}
}
field_visible_set {
@@ -260,7 +262,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(Elm.Datetime.Time)*; [[Time structure containing the maximum time value.]]
}
}
value_max_get @const {
@@ -281,7 +283,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: Elm.Datetime.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;
/**
* @}