forked from enlightenment/efl
elementary_codegen: Fixing a small problem with programs
Generating code even when there is no signal and/or source in a program with SIGNAL_EMIT action. SVN revision: 77332
This commit is contained in:
parent
f3106115d3
commit
d2e0dca5d4
|
@ -665,22 +665,7 @@ _programs_parse(Evas_Object *ed)
|
|||
continue;
|
||||
}
|
||||
|
||||
sig= edje_edit_program_signal_get(ed, name);
|
||||
if (!sig) sig = eina_stringshare_add("");
|
||||
|
||||
source = edje_edit_program_source_get(ed, name);
|
||||
if (!source) source = eina_stringshare_add("");
|
||||
|
||||
description = edje_edit_program_api_description_get(ed, name);
|
||||
if (strlen (sig))
|
||||
{
|
||||
if (!_program_emit_write(apiname, source, sig, description))
|
||||
{
|
||||
ret = EINA_FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
type = edje_edit_program_action_get(ed, name);
|
||||
if (type == EDJE_ACTION_TYPE_SIGNAL_EMIT)
|
||||
{
|
||||
|
@ -700,6 +685,21 @@ _programs_parse(Evas_Object *ed)
|
|||
edje_edit_string_free(str2);
|
||||
}
|
||||
|
||||
sig = edje_edit_program_signal_get(ed, name);
|
||||
if (!sig) sig = eina_stringshare_add("");
|
||||
|
||||
source = edje_edit_program_source_get(ed, name);
|
||||
if (!source) source = eina_stringshare_add("");
|
||||
|
||||
if (strlen (sig))
|
||||
{
|
||||
if (!_program_emit_write(apiname, source, sig, description))
|
||||
{
|
||||
ret = EINA_FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
edje_edit_string_free(description);
|
||||
edje_edit_string_free(sig);
|
||||
edje_edit_string_free(source);
|
||||
|
|
Loading…
Reference in New Issue