summaryrefslogtreecommitdiff
path: root/src/modules/datetime_input_ctxpopup
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-03-07 08:33:04 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-03-07 08:33:04 +0000
commite670455ddcae3eba7a1c9a78a9487a05ee6313ae (patch)
tree6d535fd6dcab87af2232d0002bcf0adcd92162e2 /src/modules/datetime_input_ctxpopup
parentd65881645e574010852b0d102fcabcce597a87a0 (diff)
warn-- final
SVN revision: 68900
Diffstat (limited to 'src/modules/datetime_input_ctxpopup')
-rw-r--r--src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c b/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
index 00d7f77e6..b67e40e95 100644
--- a/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
+++ b/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
@@ -76,20 +76,20 @@ _datetime_move_cb(void *data, Evas *e __UNUSED__,Evas_Object *obj __UNUSED__,
76} 76}
77 77
78static void 78static void
79_field_value_set(struct tm *time, Elm_Datetime_Field_Type field_type, int val) 79_field_value_set(struct tm *tim, Elm_Datetime_Field_Type field_type, int val)
80{ 80{
81 if (field_type >= DATETIME_FIELD_COUNT - 1) return; 81 if (field_type >= DATETIME_FIELD_COUNT - 1) return;
82 82
83 int *timearr[]= { &time->tm_year, &time->tm_mon, &time->tm_mday, &time->tm_hour, &time->tm_min }; 83 int *timearr[]= { &tim->tm_year, &tim->tm_mon, &tim->tm_mday, &tim->tm_hour, &tim->tm_min };
84 *timearr[field_type] = val; 84 *timearr[field_type] = val;
85} 85}
86 86
87static int 87static int
88_field_value_get(struct tm *time, Elm_Datetime_Field_Type field_type) 88_field_value_get(struct tm *tim, Elm_Datetime_Field_Type field_type)
89{ 89{
90 if (field_type >= DATETIME_FIELD_COUNT - 1) return -1; 90 if (field_type >= DATETIME_FIELD_COUNT - 1) return -1;
91 91
92 int *timearr[]= { &time->tm_year, &time->tm_mon, &time->tm_mday, &time->tm_hour, &time->tm_min }; 92 int *timearr[]= { &tim->tm_year, &tim->tm_mon, &tim->tm_mday, &tim->tm_hour, &tim->tm_min };
93 return (*timearr[field_type]); 93 return (*timearr[field_type]);
94} 94}
95 95
@@ -224,17 +224,17 @@ field_value_display(Elm_Datetime_Module_Data *module_data, Evas_Object *obj)
224{ 224{
225 Ctxpopup_Module_Data *ctx_mod; 225 Ctxpopup_Module_Data *ctx_mod;
226 Elm_Datetime_Field_Type field_type; 226 Elm_Datetime_Field_Type field_type;
227 struct tm time; 227 struct tm tim;
228 char buf[BUFF_SIZE]; 228 char buf[BUFF_SIZE];
229 const char *fmt; 229 const char *fmt;
230 230
231 ctx_mod = (Ctxpopup_Module_Data *)module_data; 231 ctx_mod = (Ctxpopup_Module_Data *)module_data;
232 if (!ctx_mod || !obj) return; 232 if (!ctx_mod || !obj) return;
233 233
234 elm_datetime_value_get(ctx_mod->mod_data.base, &time); 234 elm_datetime_value_get(ctx_mod->mod_data.base, &tim);
235 field_type = (Elm_Datetime_Field_Type )evas_object_data_get(obj, "_field_type"); 235 field_type = (Elm_Datetime_Field_Type )evas_object_data_get(obj, "_field_type");
236 fmt = ctx_mod->mod_data.field_format_get(ctx_mod->mod_data.base, field_type); 236 fmt = ctx_mod->mod_data.field_format_get(ctx_mod->mod_data.base, field_type);
237 strftime(buf, sizeof(buf), fmt, &time); 237 strftime(buf, sizeof(buf), fmt, &tim);
238 elm_object_text_set(obj, buf); 238 elm_object_text_set(obj, buf);
239} 239}
240 240