summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-05-29 20:06:25 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-20 16:02:02 +0200
commit89102ecbd3bb99c996d7b34fbbb55900686200bc (patch)
tree9dfb0db1da14ca205c2772372ad23a6d922c6023 /src/modules
parent8cc340e8b2016bab13872e19abcde6a0b438b4db (diff)
efl_ui_radio: cleanup API
This is a bit of a giant commit. However, the problem here is that cleaning up the API went hand in hand with rewriting most of the usages. In the process of renewing and removing old API the following was done: - Legacy API testcases have been ported back to smart callbacks - EO-API testcases have been ported to efl_add syntax - weird event #defines have been removed - Wrong constructor usage has been removed - Ported to the new box object introduced before - removed legacy API from efl_ui_radio -> no more ptr(int) q66 will do jumps of happiness -> no more ununderstandable group_add methods -> Seperated code in blocks only for legacy, and blocks only for non-legacy To verify this commit, you can check all the tests that have been touched here. Additionally, the cxx example has been adjusted ref T7867 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9060
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/elementary/prefs/elm_check.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/elementary/prefs/elm_check.c b/src/modules/elementary/prefs/elm_check.c
index c191d7dc03..997bb459c8 100644
--- a/src/modules/elementary/prefs/elm_check.c
+++ b/src/modules/elementary/prefs/elm_check.c
@@ -7,11 +7,11 @@ static Elm_Prefs_Item_Type supported_types[] =
7}; 7};
8 8
9static void 9static void
10_item_changed_cb(void *data, const Efl_Event *event) 10_item_changed_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
11{ 11{
12 Elm_Prefs_Item_Changed_Cb prefs_it_changed_cb = data; 12 Elm_Prefs_Item_Changed_Cb prefs_it_changed_cb = data;
13 13
14 prefs_it_changed_cb(event->object); 14 prefs_it_changed_cb(obj);
15} 15}
16 16
17static Evas_Object * 17static Evas_Object *
@@ -23,8 +23,7 @@ elm_prefs_check_add(const Elm_Prefs_Item_Iface *iface EINA_UNUSED,
23{ 23{
24 Evas_Object *obj = elm_check_add(prefs); 24 Evas_Object *obj = elm_check_add(prefs);
25 25
26 efl_event_callback_add 26 evas_object_smart_callback_add(obj, "changed", _item_changed_cb, cb);
27 (obj, EFL_UI_CHECK_EVENT_CHANGED, _item_changed_cb, cb);
28 elm_check_state_set(obj, spec.b.def); 27 elm_check_state_set(obj, spec.b.def);
29 28
30 return obj; 29 return obj;