diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c index fa3804e8ac..1b4887e62a 100644 --- a/src/bin/eolian/eo1_generator.c +++ b/src/bin/eolian/eo1_generator.c @@ -694,10 +694,16 @@ eo1_source_end_generate(const char *classname, Eina_Strbuf *buf) goto end; } + /* e.g event_freeze can be a property or a method. If a type is explicit (property SET/GET), + * we assume it can't be a method. + */ + if ((in_meth && in_prop) && (ftype == SET || ftype == GET)) in_meth = NULL; + if (in_meth) { _template_fill(str_func, tmpl_impl_str, impl_class, funcname, EINA_FALSE); eo1_bind_func_generate(classname, in_meth, UNRESOLVED, str_bodyf, impl_class); + continue; } if (in_prop)