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)
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)
306 \@ref calendar_example_04 306 \@ref calendar_example_04
307 ]] 307 ]]
308 params { 308 params {
309 @in selected_time: Elm_Calendar_Time *; [[A tm struct to represent the selected date.]] 309 @in selected_time: Efl.Time *; [[A tm struct to represent the selected date.]]
310 } 310 }
311 } 311 }
312 selected_time_get @const { 312 selected_time_get @const {
@@ -323,7 +323,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
323 ]] 323 ]]
324 return: bool; 324 return: bool;
325 params { 325 params {
326 @inout selected_time: Elm_Calendar_Time; [[A tm struct to point to selected date.]] 326 @inout selected_time: Efl.Time; [[A tm struct to point to selected date.]]
327 } 327 }
328 } 328 }
329 mark_add { 329 mark_add {
@@ -368,7 +368,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
368 @in mark_type: const(char)*; [[A string used to define the type of mark. It will be 368 @in mark_type: const(char)*; [[A string used to define the type of mark. It will be
369 emitted to the theme, that should display a related modification on these 369 emitted to the theme, that should display a related modification on these
370 days representation.]] 370 days representation.]]
371 @in mark_time: Elm_Calendar_Time *; [[A time struct to represent the date of inclusion of the 371 @in mark_time: Efl.Time *; [[A time struct to represent the date of inclusion of the
372 mark. For marks that repeats it will just be displayed after the inclusion 372 mark. For marks that repeats it will just be displayed after the inclusion
373 date in the calendar.]] 373 date in the calendar.]]
374 @in repeat: Elm.Calendar.Mark.Repeat.Type; [[Repeat the event following this periodicity. Can be a unique 374 @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)
425 ]] 425 ]]
426 return: bool; 426 return: bool;
427 params { 427 params {
428 @inout displayed_time: Elm_Calendar_Time; [[A tm struct to point to displayed date.]] 428 @inout displayed_time: Efl.Time; [[A tm struct to point to displayed date.]]
429 } 429 }
430 } 430 }
431 } 431 }
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 @@
15 */ 15 */
16typedef char * (*Elm_Calendar_Format_Cb)(struct tm *stime); 16typedef char * (*Elm_Calendar_Format_Cb)(struct tm *stime);
17 17
18/* temporary until better solution is found: is here because of eolian */
19typedef struct tm Elm_Calendar_Time;
20 18
21/** 19/**
22 * @} 20 * @}
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)
151 151
152 return: bool; [[$true if minimum value is accepted.]] 152 return: bool; [[$true if minimum value is accepted.]]
153 params { 153 params {
154 @in mintime: const(Elm_Datetime_Time)*; [[Time structure containing the minimum time value.]] 154 @in mintime: const(Efl.Time)*; [[Time structure containing the minimum time value.]]
155 } 155 }
156 } 156 }
157 value_min_get @const { 157 value_min_get @const {
@@ -172,7 +172,7 @@ class Elm.Datetime (Elm.Layout)
172 ]] 172 ]]
173 return: bool; [[$true if minimum value is successfully returned.]] 173 return: bool; [[$true if minimum value is successfully returned.]]
174 params { 174 params {
175 @inout mintime: Elm_Datetime_Time; [[Time structure.]] 175 @inout mintime: Efl.Time; [[Time structure.]]
176 } 176 }
177 } 177 }
178 value_set { 178 value_set {
@@ -193,7 +193,7 @@ class Elm.Datetime (Elm.Layout)
193 ]] 193 ]]
194 return: bool; [[$true if current time is set successfully.]] 194 return: bool; [[$true if current time is set successfully.]]
195 params { 195 params {
196 @in newtime: const(Elm_Datetime_Time)*; [[Time structure filled with values to be set.]] 196 @in newtime: const(Efl.Time)*; [[Time structure filled with values to be set.]]
197 } 197 }
198 } 198 }
199 value_get @const { 199 value_get @const {
@@ -214,7 +214,7 @@ class Elm.Datetime (Elm.Layout)
214 ]] 214 ]]
215 return: bool; [[$true if current time is returned successfully.]] 215 return: bool; [[$true if current time is returned successfully.]]
216 params { 216 params {
217 @inout currtime: Elm_Datetime_Time; [[Time structure.]] 217 @inout currtime: Efl.Time; [[Time structure.]]
218 } 218 }
219 } 219 }
220 field_visible_set { 220 field_visible_set {
@@ -260,7 +260,7 @@ class Elm.Datetime (Elm.Layout)
260 ]] 260 ]]
261 return: bool; [[$true if maximum value is accepted.]] 261 return: bool; [[$true if maximum value is accepted.]]
262 params { 262 params {
263 @in maxtime: const(Elm_Datetime_Time)*; [[Time structure containing the maximum time value.]] 263 @in maxtime: const(Efl.Time)*; [[Time structure containing the maximum time value.]]
264 } 264 }
265 } 265 }
266 value_max_get @const { 266 value_max_get @const {
@@ -281,7 +281,7 @@ class Elm.Datetime (Elm.Layout)
281 ]] 281 ]]
282 return: bool; [[$true if maximum value is returned successfully.]] 282 return: bool; [[$true if maximum value is returned successfully.]]
283 params { 283 params {
284 @inout maxtime: Elm_Datetime_Time; [[Time structure containing the maximum time value.]] 284 @inout maxtime: Efl.Time; [[Time structure containing the maximum time value.]]
285 } 285 }
286 } 286 }
287 } 287 }
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 * @}