forked from enlightenment/efl
edje_edit: program's source and signal CAN be NULL
Or else user can't remove them, only by writing source/signal like "" or some gibberish which is still getting interprettered as source and signal
This commit is contained in:
parent
72363b4777
commit
e64c30caab
|
@ -9674,8 +9674,6 @@ edje_edit_program_source_set(Evas_Object *obj, const char *prog, const char *sou
|
||||||
GET_ED_OR_RETURN(EINA_FALSE);
|
GET_ED_OR_RETURN(EINA_FALSE);
|
||||||
GET_EPR_OR_RETURN(EINA_FALSE);
|
GET_EPR_OR_RETURN(EINA_FALSE);
|
||||||
|
|
||||||
if (!source) return EINA_FALSE;
|
|
||||||
|
|
||||||
/* Remove from program array */
|
/* Remove from program array */
|
||||||
_edje_program_remove(ed->collection, epr);
|
_edje_program_remove(ed->collection, epr);
|
||||||
|
|
||||||
|
@ -9848,8 +9846,6 @@ edje_edit_program_signal_set(Evas_Object *obj, const char *prog, const char *sig
|
||||||
GET_ED_OR_RETURN(EINA_FALSE);
|
GET_ED_OR_RETURN(EINA_FALSE);
|
||||||
GET_EPR_OR_RETURN(EINA_FALSE);
|
GET_EPR_OR_RETURN(EINA_FALSE);
|
||||||
|
|
||||||
if (!sig) return EINA_FALSE;
|
|
||||||
|
|
||||||
/* Remove from program array */
|
/* Remove from program array */
|
||||||
_edje_program_remove(ed->collection, epr);
|
_edje_program_remove(ed->collection, epr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue