elm_widget: added evas smart callback descriptions

Summary:
Resolved FIXME filled all smart callbacks and also set it in the constructor

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: seoz

Differential Revision: https://phab.enlightenment.org/D1876
This commit is contained in:
kabeer khan 2015-02-09 10:40:29 +09:00 committed by Daniel Juyung Seo
parent f422f0ca69
commit 2d7cb99e9b
1 changed files with 5 additions and 1 deletions

View File

@ -302,7 +302,10 @@ _on_sub_obj_del(void *data,
static const Evas_Smart_Cb_Description _smart_callbacks[] =
{
/* FIXME: complete later */
{SIG_WIDGET_FOCUSED, ""},
{SIG_WIDGET_UNFOCUSED, ""},
{SIG_WIDGET_LANG_CHANGED, ""},
{SIG_WIDGET_ACCESS_CHANGED, ""},
{NULL, NULL}
};
@ -5360,6 +5363,7 @@ _elm_widget_eo_base_constructor(Eo *obj, Elm_Widget_Smart_Data *sd)
eo_do_super(obj, MY_CLASS, eo_constructor());
eo_do(obj,
evas_obj_type_set(MY_CLASS_NAME_LEGACY),
evas_obj_smart_callbacks_descriptions_set(_smart_callbacks),
parent = eo_parent_get());
eo_do(obj, elm_obj_widget_parent_set(parent));
sd->on_create = EINA_FALSE;