efl_ui_timepicker: change a property name (ampm -> is_24hour)
authorWooHyun Jung <wh0705.jung@samsung.com>
Wed, 4 Sep 2019 05:06:23 +0000 (14:06 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Mon, 16 Sep 2019 01:23:00 +0000 (10:23 +0900)
Summary:
For better understanding of the property, "is_24hour" looks
better than "ampm".

@ref T7901

Reviewers: zmike, segfaultxavi, bu5hm4n, kimcinoo

Reviewed By: segfaultxavi, kimcinoo

Subscribers: kimcinoo, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7901

Differential Revision: https://phab.enlightenment.org/D9811

src/lib/elementary/efl_ui_timepicker.c
src/lib/elementary/efl_ui_timepicker.eo

index 901678c..1aa5a9c 100644 (file)
@@ -245,7 +245,7 @@ _efl_ui_timepicker_time_get(const Eo *obj EINA_UNUSED, Efl_Ui_Timepicker_Data *p
 }
 
 EOLIAN static void
-_efl_ui_timepicker_ampm_set(Eo *obj, Efl_Ui_Timepicker_Data *pd, Eina_Bool is_24hour)
+_efl_ui_timepicker_is_24hour_set(Eo *obj, Efl_Ui_Timepicker_Data *pd, Eina_Bool is_24hour)
 {
    if (pd->is_24hour == is_24hour) return;
 
@@ -258,7 +258,7 @@ _efl_ui_timepicker_ampm_set(Eo *obj, Efl_Ui_Timepicker_Data *pd, Eina_Bool is_24
 }
 
 EOLIAN static Eina_Bool
-_efl_ui_timepicker_ampm_get(const Eo *obj EINA_UNUSED, Efl_Ui_Timepicker_Data *pd)
+_efl_ui_timepicker_is_24hour_get(const Eo *obj EINA_UNUSED, Efl_Ui_Timepicker_Data *pd)
 {
    return pd->is_24hour;
 }
index b71a9f5..97d5bbd 100644 (file)
@@ -23,7 +23,7 @@ class @beta Efl.Ui.Timepicker extends Efl.Ui.Layout_Base
             min: int; [[The minute value from 0 to 59.]]
          }
       }
-      @property ampm {
+      @property is_24hour {
          [[Control if the Timepicker displays 24 hour time or 12 hour time including AM/PM button.]]
          set {
          }