efl_ui_datetime: change min/max to date_min/date_max

Summary:
To keep consistency with other classes, change the property name
properly.

@ref T7869

Reviewers: zmike, segfaultxavi, bu5hm4n

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7869

Differential Revision: https://phab.enlightenment.org/D9797
This commit is contained in:
WooHyun Jung 2019-08-30 12:08:16 +02:00 committed by Xavi Artigas
parent 9a4b6728d5
commit 0e82fa3f40
3 changed files with 8 additions and 8 deletions

View File

@ -29,8 +29,8 @@ test_ui_datepicker(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
efl_add(EFL_UI_DATEPICKER_CLASS, bx,
efl_ui_datepicker_date_set(efl_added, 1987, 9, 17),
efl_ui_datepicker_max_set(efl_added, 1990, 9, 17),
efl_ui_datepicker_min_set(efl_added, 1980, 9, 17),
efl_ui_datepicker_date_max_set(efl_added, 1990, 9, 17),
efl_ui_datepicker_date_min_set(efl_added, 1980, 9, 17),
efl_event_callback_add(efl_added, EFL_UI_DATEPICKER_EVENT_CHANGED,_date_changed_cb, NULL),
efl_pack(bx, efl_added));

View File

@ -254,7 +254,7 @@ _efl_ui_datepicker_efl_object_destructor(Eo *obj, Efl_Ui_Datepicker_Data *pd)
}
EOLIAN static void
_efl_ui_datepicker_min_set(Eo *obj, Efl_Ui_Datepicker_Data *pd EINA_UNUSED, int year, int month, int day)
_efl_ui_datepicker_date_min_set(Eo *obj, Efl_Ui_Datepicker_Data *pd EINA_UNUSED, int year, int month, int day)
{
int new_time[EFL_UI_DATEPICKER_TYPE_COUNT] = {year, month, day};
@ -271,7 +271,7 @@ _efl_ui_datepicker_min_set(Eo *obj, Efl_Ui_Datepicker_Data *pd EINA_UNUSED, int
}
EOLIAN static void
_efl_ui_datepicker_min_get(const Eo *obj EINA_UNUSED, Efl_Ui_Datepicker_Data *pd, int *year, int *month, int *day)
_efl_ui_datepicker_date_min_get(const Eo *obj EINA_UNUSED, Efl_Ui_Datepicker_Data *pd, int *year, int *month, int *day)
{
*year = pd->min_date[DATEPICKER_YEAR];
*month = pd->min_date[DATEPICKER_MONTH];
@ -279,7 +279,7 @@ _efl_ui_datepicker_min_get(const Eo *obj EINA_UNUSED, Efl_Ui_Datepicker_Data *pd
}
EOLIAN static void
_efl_ui_datepicker_max_set(Eo *obj, Efl_Ui_Datepicker_Data *pd EINA_UNUSED, int year, int month, int day)
_efl_ui_datepicker_date_max_set(Eo *obj, Efl_Ui_Datepicker_Data *pd EINA_UNUSED, int year, int month, int day)
{
int new_time[EFL_UI_DATEPICKER_TYPE_COUNT] = {year, month, day};
@ -296,7 +296,7 @@ _efl_ui_datepicker_max_set(Eo *obj, Efl_Ui_Datepicker_Data *pd EINA_UNUSED, int
}
EOLIAN static void
_efl_ui_datepicker_max_get(const Eo *obj EINA_UNUSED, Efl_Ui_Datepicker_Data *pd, int *year, int *month, int *day)
_efl_ui_datepicker_date_max_get(const Eo *obj EINA_UNUSED, Efl_Ui_Datepicker_Data *pd, int *year, int *month, int *day)
{
*year = pd->max_date[DATEPICKER_YEAR];
*month = pd->max_date[DATEPICKER_MONTH];

View File

@ -7,7 +7,7 @@ class @beta Efl.Ui.Datepicker extends Efl.Ui.Layout_Base
value using internal entry.
]]
methods {
@property min {
@property date_min {
[[The lower boundary of date.
$year: Year. The year range is from 1900 to 2137.
@ -26,7 +26,7 @@ class @beta Efl.Ui.Datepicker extends Efl.Ui.Layout_Base
day: int; [[The day value from 1 to 31.]]
}
}
@property max {
@property date_max {
[[The upper boundary of date.
$year: Year. The year range is from 1900 to 2137.