aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/eobj/examples/evas/elw_win.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-06-10 14:13:34 +0000
committerTom Hacohen <tom@stosb.com>2012-06-10 14:13:34 +0000
commit1aef778d98be88775fa55672bf542dc930cf410c (patch)
tree0bcd8858a039ffd1fb2e2aa60345551f7bdf10a7 /legacy/eobj/examples/evas/elw_win.c
parentEo: Fixed error message. (diff)
downloadefl-1aef778d98be88775fa55672bf542dc930cf410c.tar.gz
Eo: Turn evas example back on.
SVN revision: 71903
Diffstat (limited to 'legacy/eobj/examples/evas/elw_win.c')
-rw-r--r--legacy/eobj/examples/evas/elw_win.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/legacy/eobj/examples/evas/elw_win.c b/legacy/eobj/examples/evas/elw_win.c
index 2558b00968..17dad999db 100644
--- a/legacy/eobj/examples/evas/elw_win.c
+++ b/legacy/eobj/examples/evas/elw_win.c
@@ -23,7 +23,7 @@ my_win_del(void *data, Evas_Object *obj, void *event_info)
}
static void
-_constructor(Eo *obj, void *class_data)
+_constructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED)
{
eo_do_super(obj, eo_constructor());
@@ -43,15 +43,24 @@ _constructor(Eo *obj, void *class_data)
eo_evas_object_set(obj, wd->win);
}
+static void
+_class_constructor(Eo_Class *klass)
+{
+ const Eo_Op_Func_Description func_desc[] = {
+ EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _constructor),
+ EO_OP_FUNC_SENTINEL
+ };
+
+ eo_class_funcs_set(klass, func_desc);
+}
+
static const Eo_Class_Description class_desc = {
"Elw Win",
EO_CLASS_TYPE_REGULAR,
EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
NULL,
sizeof(Widget_Data),
- _constructor,
- NULL,
- NULL,
+ _class_constructor,
NULL
};