EAPI Eina_Error EDJE_EDIT_ERROR_GROUP_REFERENCED = 0;
EAPI Eina_Error EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST = 0;
-/* Get ed(Edje*) from obj(Evas_Object*) */
-#define GET_ED_OR_RETURN(RET) \
- Edje *ed; \
+/* Get eed(Edje_Edit*) from obj(Evas_Object*) */
+#define GET_EED_OR_RETURN(RET) \
Edje_Edit *eed; \
if (!evas_object_smart_type_check_ptr(obj, _edje_edit_type)) \
return RET; \
eed = evas_object_smart_data_get(obj); \
- if (!eed) return RET; \
+ if (!eed) return RET;
+
+/* Get ed(Edje*) from obj(Evas_Object*) */
+#define GET_ED_OR_RETURN(RET) \
+ Edje *ed; \
+ GET_EED_OR_RETURN(RET); \
ed = (Edje *)eed;
/* Get rp(Edje_Real_Part*) from obj(Evas_Object*) and part(char*) */
{
eina_error_set(0);
- GET_ED_OR_RETURN(-1);
+ GET_EED_OR_RETURN(-1);
return _edje_image_id_find(eed, image_name);
}
edje_edit_program_add(Evas_Object *obj, const char *name)
{
Edje_Program *epr;
- Edje_Part_Collection *pc;
eina_error_set(0);
if (!epr) return EINA_FALSE;
//Add program to group
- pc = ed->collection;
+ // pc = ed->collection;
/* By default, source and signal are empty, so they fill in nocmp category */
ed->collection->programs.nocmp = realloc(ed->collection->programs.nocmp,
Eina_List *l, *l_next;
Edje_Program_Target *prt;
Edje_Program_After *pa;
- Edje_Part_Collection *pc;
Edje_Program *p;
Program_Script *ps, *old_ps;
int id, i;
GET_ED_OR_RETURN(EINA_FALSE);
GET_EPR_OR_RETURN(EINA_FALSE);
- pc = ed->collection;
+ //pc = ed->collection;
//Remove program from programs list
id = epr->id;
eina_error_set(0);
- GET_ED_OR_RETURN(EINA_FALSE);
+ GET_EED_OR_RETURN(EINA_FALSE);
GET_EPR_OR_RETURN(EINA_FALSE);
//printf("SET ACTION for program: %s [%d]\n", prog, action);
{
eina_error_set(0);
- GET_ED_OR_RETURN();
+ GET_EED_OR_RETURN();
free(eed->embryo_source);
free(eed->embryo_processed);
eina_error_set(0);
- GET_ED_OR_RETURN(NULL);
+ GET_EED_OR_RETURN(NULL);
GET_EPR_OR_RETURN(NULL);
if (epr->action != EDJE_ACTION_TYPE_SCRIPT)
eina_error_set(0);
- GET_ED_OR_RETURN();
+ GET_EED_OR_RETURN();
GET_EPR_OR_RETURN();
if (epr->action != EDJE_ACTION_TYPE_SCRIPT)
EAPI Eina_Bool
edje_edit_script_compile(Evas_Object *obj)
{
- GET_ED_OR_RETURN(EINA_FALSE);
+ GET_EED_OR_RETURN(EINA_FALSE);
if (!eed->script_need_recompile)
return EINA_TRUE;
EAPI const Eina_List *
edje_edit_script_error_list_get(Evas_Object *obj)
{
- GET_ED_OR_RETURN(NULL);
+ GET_EED_OR_RETURN(NULL);
return eed->errors;
}
const char *api_name, *api_description;
Edje_Program *epr;
- GET_ED_OR_RETURN(EINA_FALSE);
+ GET_EED_OR_RETURN(EINA_FALSE);
epr = _edje_program_get_byname(obj, program);
*/
eina_error_set(0);
- GET_ED_OR_RETURN();
+ GET_EED_OR_RETURN();
_edje_generate_source(obj);
/*
// nil ~
static char *
-_elua_push_name(lua_State *L, char *q, int index) // Stack usage [-0, +1, e or m]
+_elua_push_name(lua_State *L, char *q, int idx) // Stack usage [-0, +1, e or m]
{
char *p = q;
char temp = '\0';
q++;
temp = *q;
*q = '\0';
- if (index > 0)
- lua_getfield(L, index, p); // Stack usage [-0, +1, e]
+ if (idx > 0)
+ lua_getfield(L, idx, p); // Stack usage [-0, +1, e]
else
lua_pushstring(L, p); // Stack usage [-0, +1, m]
*q = temp;
command.type.sample.speed = speed;
size = write(command_pipe[1], &command, sizeof(command));
#else
- ed = NULL; // warning shh
- if (speed > 0) sample_name = NULL; // warning shh
+ // warning shh
+ (void) ed;
+ (void) sample_name;
+ (void) speed;
#endif
return (size == sizeof(Edje_Multisense_Sound_Action));
}
command.type.tone.duration = duration;
size = write(command_pipe[1], &command, sizeof(command));
#else
- ed = NULL; // warning shh
- if (duration > 0) tone_name = NULL; // warning shh
+ // warning shh
+ (void) ed;
+ (void) duration;
+ (void) tone_name;
#endif
return (size == sizeof(Edje_Multisense_Sound_Action));