summaryrefslogtreecommitdiff
path: root/src/modules/elementary/prefs/elm_check.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;