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)
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 @@
1type Elm.Calendar.Time: Ecore.Time;
2
1enum Elm.Calendar.Mark.Repeat.Type 3enum Elm.Calendar.Mark.Repeat.Type
2{ 4{
3 [[ 5 [[
@@ -301,7 +303,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
301 \@ref calendar_example_04 303 \@ref calendar_example_04
302 ]] 304 ]]
303 params { 305 params {
304 @in selected_time: Elm_Calendar_Time *; [[A tm struct to represent the selected date.]] 306 @in selected_time: Elm.Calendar.Time *; [[A tm struct to represent the selected date.]]
305 } 307 }
306 } 308 }
307 selected_time_get @const { 309 selected_time_get @const {
@@ -318,7 +320,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
318 ]] 320 ]]
319 return: bool; 321 return: bool;
320 params { 322 params {
321 @inout selected_time: Elm_Calendar_Time; [[A tm struct to point to selected date.]] 323 @inout selected_time: Elm.Calendar.Time; [[A tm struct to point to selected date.]]
322 } 324 }
323 } 325 }
324 mark_add { 326 mark_add {
@@ -363,7 +365,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
363 @in mark_type: const(char)*; [[A string used to define the type of mark. It will be 365 @in mark_type: const(char)*; [[A string used to define the type of mark. It will be
364 emitted to the theme, that should display a related modification on these 366 emitted to the theme, that should display a related modification on these
365 days representation.]] 367 days representation.]]
366 @in mark_time: Elm_Calendar_Time *; [[A time struct to represent the date of inclusion of the 368 @in mark_time: Elm.Calendar.Time *; [[A time struct to represent the date of inclusion of the
367 mark. For marks that repeats it will just be displayed after the inclusion 369 mark. For marks that repeats it will just be displayed after the inclusion
368 date in the calendar.]] 370 date in the calendar.]]
369 @in repeat: Elm.Calendar.Mark.Repeat.Type; [[Repeat the event following this periodicity. Can be a unique 371 @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)
405 ]] 407 ]]
406 return: bool; 408 return: bool;
407 params { 409 params {
408 @inout displayed_time: Elm_Calendar_Time; [[A tm struct to point to displayed date.]] 410 @inout displayed_time: Elm.Calendar.Time; [[A tm struct to point to displayed date.]]
409 } 411 }
410 } 412 }
411 } 413 }
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);
31 */ 31 */
32EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark); 32EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark);
33 33
34/* temporary until better solution is found: is here because of eolian */
35typedef struct tm Elm_Calendar_Time;
36
37/** 34/**
38 * @} 35 * @}
39 */ 36 */
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 @@
1type Elm.Datetime.Time: Ecore.Time;
2
1enum Elm.Datetime.Field_Type 3enum Elm.Datetime.Field_Type
2{ 4{
3 [[Identifies a Datetime field, The widget supports 6 fields : Year, month, 5 [[Identifies a Datetime field, The widget supports 6 fields : Year, month,
@@ -151,7 +153,7 @@ class Elm.Datetime (Elm.Layout)
151 153
152 return: bool; [[$true if minimum value is accepted.]] 154 return: bool; [[$true if minimum value is accepted.]]
153 params { 155 params {
154 @in mintime: const(Elm_Datetime_Time)*; [[Time structure containing the minimum time value.]] 156 @in mintime: const(Elm.Datetime.Time)*; [[Time structure containing the minimum time value.]]
155 } 157 }
156 } 158 }
157 value_min_get @const { 159 value_min_get @const {
@@ -172,7 +174,7 @@ class Elm.Datetime (Elm.Layout)
172 ]] 174 ]]
173 return: bool; [[$true if minimum value is successfully returned.]] 175 return: bool; [[$true if minimum value is successfully returned.]]
174 params { 176 params {
175 @inout mintime: Elm_Datetime_Time; [[Time structure.]] 177 @inout mintime: Elm.Datetime.Time; [[Time structure.]]
176 } 178 }
177 } 179 }
178 value_set { 180 value_set {
@@ -193,7 +195,7 @@ class Elm.Datetime (Elm.Layout)
193 ]] 195 ]]
194 return: bool; [[$true if current time is set successfully.]] 196 return: bool; [[$true if current time is set successfully.]]
195 params { 197 params {
196 @in newtime: const(Elm_Datetime_Time)*; [[Time structure filled with values to be set.]] 198 @in newtime: const(Elm.Datetime.Time)*; [[Time structure filled with values to be set.]]
197 } 199 }
198 } 200 }
199 value_get @const { 201 value_get @const {
@@ -214,7 +216,7 @@ class Elm.Datetime (Elm.Layout)
214 ]] 216 ]]
215 return: bool; [[$true if current time is returned successfully.]] 217 return: bool; [[$true if current time is returned successfully.]]
216 params { 218 params {
217 @inout currtime: Elm_Datetime_Time; [[Time structure.]] 219 @inout currtime: Elm.Datetime.Time; [[Time structure.]]
218 } 220 }
219 } 221 }
220 field_visible_set { 222 field_visible_set {
@@ -260,7 +262,7 @@ class Elm.Datetime (Elm.Layout)
260 ]] 262 ]]
261 return: bool; [[$true if maximum value is accepted.]] 263 return: bool; [[$true if maximum value is accepted.]]
262 params { 264 params {
263 @in maxtime: const(Elm_Datetime_Time)*; [[Time structure containing the maximum time value.]] 265 @in maxtime: const(Elm.Datetime.Time)*; [[Time structure containing the maximum time value.]]
264 } 266 }
265 } 267 }
266 value_max_get @const { 268 value_max_get @const {
@@ -281,7 +283,7 @@ class Elm.Datetime (Elm.Layout)
281 ]] 283 ]]
282 return: bool; [[$true if maximum value is returned successfully.]] 284 return: bool; [[$true if maximum value is returned successfully.]]
283 params { 285 params {
284 @inout maxtime: Elm_Datetime_Time; [[Time structure containing the maximum time value.]] 286 @inout maxtime: Elm.Datetime.Time; [[Time structure containing the maximum time value.]]
285 } 287 }
286 } 288 }
287 } 289 }
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 @@
3 * 3 *
4 * @{ 4 * @{
5 */ 5 */
6/* temporary until better solution is found: is here because of eolian */
7typedef struct tm Elm_Datetime_Time;
8 6
9/** 7/**
10 * @} 8 * @}