summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-02 11:40:06 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-13 15:57:17 +0100
commitbbdab35a7a911859c2f6ed2e110c5f81d7455f4e (patch)
tree93413bd6be2aba2dd9d01a6ff2a56359e7616dd7 /src/bin
parent7c0ea3509706e20ab553ef514bd55845fc6210dd (diff)
efl_ui_timepicker: make 24h mode work
this is something which was never ever working before. However, while fixing the 24h mode, it also appeared that the theming was applied in the wrong spot, which resulted in signals beeing called on a not yet themed object, so the theming was also fixed. (Which is the theme_apply change). To sum up: - The theme is now applied by efl_ui_layout_base - the range is now correct for 24h mode - There is a quite major problem with the theme, see T8546 - As a quick fix, am / pm button can be disabled. ref T8546 Differential Revision: https://phab.enlightenment.org/D11004
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elementary/test_ui_timepicker.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/elementary/test_ui_timepicker.c b/src/bin/elementary/test_ui_timepicker.c
index 3249699..f7b5d7d 100644
--- a/src/bin/elementary/test_ui_timepicker.c
+++ b/src/bin/elementary/test_ui_timepicker.c
@@ -32,5 +32,11 @@ test_ui_timepicker(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
32 efl_event_callback_add(efl_added, EFL_UI_TIMEPICKER_EVENT_TIME_CHANGED,_time_changed_cb, NULL), 32 efl_event_callback_add(efl_added, EFL_UI_TIMEPICKER_EVENT_TIME_CHANGED,_time_changed_cb, NULL),
33 efl_pack(bx, efl_added)); 33 efl_pack(bx, efl_added));
34 34
35 efl_add(EFL_UI_TIMEPICKER_CLASS, bx,
36 efl_ui_timepicker_time_set(efl_added, 11, 35),
37 efl_ui_timepicker_is_24hour_set(efl_added, EINA_TRUE),
38 efl_event_callback_add(efl_added, EFL_UI_TIMEPICKER_EVENT_TIME_CHANGED,_time_changed_cb, NULL),
39 efl_pack(bx, efl_added));
40
35 efl_gfx_entity_size_set(win, EINA_SIZE2D(150, 170)); 41 efl_gfx_entity_size_set(win, EINA_SIZE2D(150, 170));
36} 42}