summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Levin <avi.levin@samsung.com>2015-06-09 16:08:07 +0300
committerAvi Levin <avi.levin@samsung.com>2015-06-29 17:03:30 +0300
commit4d25d20b0937d26c4fe7b1cefc285eac0fc8d561 (patch)
treefac2c167b3af74c826bfc6d0d56e6483f12eb1d8
parentd4b12b5eca77a66538faafa0b5bb872db979edea (diff)
elm_datetime: porting evas smart callbacks to eo
-rw-r--r--src/lib/elm_datetime.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c
index 12a8cf099..336d2fd43 100644
--- a/src/lib/elm_datetime.c
+++ b/src/lib/elm_datetime.c
@@ -1026,7 +1026,8 @@ _elm_datetime_field_limit_set(Eo *obj, Elm_Datetime_Data *sd, Elm_Datetime_Field
1026 _apply_field_limits(obj); 1026 _apply_field_limits(obj);
1027 1027
1028 if (!_field_cmp(fieldtype, &old_time, &sd->curr_time)) 1028 if (!_field_cmp(fieldtype, &old_time, &sd->curr_time))
1029 evas_object_smart_callback_call(obj, SIG_CHANGED, NULL); 1029 eo_do(obj, eo_event_callback_call(ELM_DATETIME_EVENT_CHANGED, NULL));
1030
1030} 1031}
1031 1032
1032EOLIAN static Eina_Bool 1033EOLIAN static Eina_Bool
@@ -1052,7 +1053,7 @@ _elm_datetime_value_set(Eo *obj, Elm_Datetime_Data *sd, const struct tm *newtime
1052 _validate_datetime_limits(&sd->max_limit, &sd->curr_time, EINA_TRUE); 1053 _validate_datetime_limits(&sd->max_limit, &sd->curr_time, EINA_TRUE);
1053 _apply_field_limits(obj); 1054 _apply_field_limits(obj);
1054 1055
1055 evas_object_smart_callback_call(obj, SIG_CHANGED, NULL); 1056 eo_do(obj, eo_event_callback_call(ELM_DATETIME_EVENT_CHANGED, NULL));
1056 1057
1057 return EINA_TRUE; 1058 return EINA_TRUE;
1058} 1059}
@@ -1083,8 +1084,8 @@ _elm_datetime_value_min_set(Eo *obj, Elm_Datetime_Data *sd, const struct tm *min
1083 _validate_datetime_limits(&sd->curr_time, &sd->min_limit, EINA_FALSE); 1084 _validate_datetime_limits(&sd->curr_time, &sd->min_limit, EINA_FALSE);
1084 _apply_field_limits(obj); 1085 _apply_field_limits(obj);
1085 1086
1086 if (!_date_cmp(&old_time, &sd->curr_time)) 1087 if (!_date_cmp(&old_time, &sd->curr_time))
1087 evas_object_smart_callback_call(obj, SIG_CHANGED, NULL); 1088 eo_do(obj, eo_event_callback_call(ELM_DATETIME_EVENT_CHANGED, NULL));
1088 1089
1089 return EINA_TRUE; 1090 return EINA_TRUE;
1090} 1091}
@@ -1116,7 +1117,7 @@ _elm_datetime_value_max_set(Eo *obj, Elm_Datetime_Data *sd, const struct tm *max
1116 _apply_field_limits(obj); 1117 _apply_field_limits(obj);
1117 1118
1118 if (!_date_cmp(&old_time, &sd->curr_time)) 1119 if (!_date_cmp(&old_time, &sd->curr_time))
1119 evas_object_smart_callback_call(obj, SIG_CHANGED, NULL); 1120 eo_do(obj, eo_event_callback_call(ELM_DATETIME_EVENT_CHANGED, NULL));
1120 1121
1121 return EINA_TRUE; 1122 return EINA_TRUE;
1122} 1123}