ep->description_pos = npos;
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
ep->invalidate = 1;
#endif
ep->part->type == EDJE_PART_TYPE_EXTERNAL)
_edje_external_recalc_apply(ed, ep, NULL, chosen_desc);
- ed->recalc_hints = 1;
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->recalc_hints = EINA_TRUE;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
ep->invalidate = 1;
#endif
{
if ((ed->freeze > 0) || (_edje_freeze_val > 0))
{
- ed->recalc = 1;
+ ed->recalc = EINA_TRUE;
if (!ed->calc_only)
{
if (_edje_freeze_val > 0)
{
_edje_freeze_calc_count++;
_edje_freeze_calc_list = eina_list_append(_edje_freeze_calc_list, ed);
- ed->freeze_calc = 1;
+ ed->freeze_calc = EINA_TRUE;
}
}
return;
// if (!ed->calc_only)
evas_object_smart_changed(ed->obj);
// XXX: dont need this with current smart calc infra. remove me later
-// ed->postponed = 1;
+// ed->postponed = EINA_TRUE;
}
void
Eina_Bool need_calc;
// XXX: dont need this with current smart calc infra. remove me later
-// ed->postponed = 0;
+// ed->postponed = EINA_FALSE;
need_calc = evas_object_smart_need_recalculate_get(ed->obj);
evas_object_smart_need_recalculate_set(ed->obj, 0);
if (!ed->dirty) return;
- ed->have_mapped_part = 0;
- ed->dirty = 0;
+ ed->have_mapped_part = EINA_FALSE;
+ ed->dirty = EINA_FALSE;
ed->state++;
for (i = 0; i < ed->table_parts_size; i++)
{
if (ep->calculated != FLAG_XY)
_edje_part_recalc(ed, ep, (~ep->calculated) & FLAG_XY, NULL);
}
- if (!ed->calc_only) ed->recalc = 0;
+ if (!ed->calc_only) ed->recalc = EINA_FALSE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 0;
- ed->text_part_change = 0;
+ ed->all_part_change = EINA_FALSE;
+ ed->text_part_change = EINA_FALSE;
#endif
if (!ed->calc_only)
{
}
else
evas_object_smart_need_recalculate_set(ed->obj, need_calc);
- ed->recalc_call = 0;
+ ed->recalc_call = EINA_FALSE;
if (ed->update_hints && ed->recalc_hints && !ed->calc_only)
{
Evas_Coord w, h;
- ed->recalc_hints = 0;
+ ed->recalc_hints = EINA_FALSE;
edje_object_size_min_calc(ed->obj, &w, &h);
evas_object_size_hint_min_set(ed->obj, w, h);
ep->drag->x = x;
ep->drag->tmp.x = 0;
ep->drag->need_reset = 0;
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
}
if (ep->drag->y != y || ep->drag->tmp.y)
ep->drag->y = y;
ep->drag->tmp.y = 0;
ep->drag->need_reset = 0;
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
}
#ifdef EDJE_CALC_CACHE
{
static Evas_Map *map = NULL;
- ed->have_mapped_part = 1;
+ ed->have_mapped_part = EINA_TRUE;
// create map and populate with part geometry
if (!map) map = evas_map_new(4);
evas_map_util_points_populate_from_object(map, ep->object);
if (rp->drag->down.count == 0)
{
rp->drag->need_reset = 1;
- ed->recalc_call = 1;
- ed->dirty = 1;
+ ed->recalc_call = EINA_TRUE;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
rp->drag->tmp.x = ev->cur.canvas.x - rp->drag->down.x;
if (rp->part->dragable.y)
rp->drag->tmp.y = ev->cur.canvas.y - rp->drag->down.y;
- ed->recalc_call = 1;
- ed->dirty = 1;
+ ed->recalc_call = EINA_TRUE;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
rp->drag->val.y = dy;
if (!ignored)
_edje_emit(ed, "drag", rp->part->name);
- ed->recalc_call = 1;
- ed->dirty = 1;
+ ed->recalc_call = EINA_TRUE;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
{
const void *tmp;
- ed->walking_actions = 1;
+ ed->walking_actions = EINA_TRUE;
EINA_LIST_FOREACH(ed->actions, l, tmp)
newl = eina_list_append(newl, tmp);
while (newl)
free(runp);
}
}
- ed->walking_actions = 0;
+ ed->walking_actions = EINA_FALSE;
}
break_prog:
_edje_unblock(ed);
((Smart_Data *)(ei->sd))->colinfo[i].maxw = ei->cells[i].maxw;
}
- ei->recalc = 0;
+ ei->recalc = EINA_FALSE;
_edje_container_recalc(ei->sd);
}
ei->cells[col].maxh = maxh;
ei->cells[col].minw = minw;
ei->cells[col].maxw = maxw;
- ei->recalc = 1;
+ ei->recalc = EINA_TRUE;
if (ei->sd)
{
((Smart_Data *)(ei->sd))->changed = 1;
if (h < 0.0) h = 0.0;
ed->collection->prop.min.w = w;
ed->collection->prop.min.h = h;
- ed->recalc_call = 1;
- ed->dirty = 1;
+ ed->recalc_call = EINA_TRUE;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
return 0;
if (h < 0.0) h = 0.0;
ed->collection->prop.max.w = w;
ed->collection->prop.max.h = h;
- ed->recalc_call = 1;
- ed->dirty = 1;
+ ed->recalc_call = EINA_TRUE;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
program_id = params[1];
if (program_id < 0) return 0;
- ed->walking_actions = 1;
+ ed->walking_actions = EINA_TRUE;
EINA_LIST_FOREACH(ed->actions, l, runp)
if (program_id == runp->program->id)
_edje_program_end(ed, runp);
- ed->walking_actions = 0;
+ ed->walking_actions = EINA_FALSE;
return 0;
}
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
- ed->dirty=1;
+ ed->dirty = EINA_TRUE;
return 0;
}
ed->load_error = EDJE_LOAD_ERROR_NONE;
_edje_file_add(ed);
- ed->block_break = 0;
+ ed->block_break = EINA_FALSE;
if (ed->file && ed->file->external_dir)
{
_edje_dragable_pos_set(ed, rp, rp->drag->val.x, rp->drag->val.y);
}
}
- ed->recalc_call = 1;
- ed->dirty = 1;
+ ed->recalc_call = EINA_TRUE;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
if ((evas_object_clipees_get(ed->base.clipper)) &&
(evas_object_visible_get(obj)))
if (ed->freeze_calc)
{
_edje_freeze_calc_list = eina_list_remove(_edje_freeze_calc_list, ed);
- ed->freeze_calc = 0;
+ ed->freeze_calc = EINA_FALSE;
_edje_freeze_calc_count--;
}
_edje_entry_shutdown(ed);
lua_rawgeti(L, 2, 2);
obj->ed->collection->prop.min.w = luaL_checkint(L, -2);
obj->ed->collection->prop.min.h = luaL_checkint(L, -1);
- obj->ed->dirty = 1;
+ obj->ed->dirty = EINA_TRUE;
_edje_recalc(obj->ed);
return 0;
}
lua_rawgeti(L, 2, 2);
obj->ed->collection->prop.max.w = luaL_checkint(L, -2);
obj->ed->collection->prop.max.h = luaL_checkint(L, -1);
- obj->ed->dirty = 1;
+ obj->ed->dirty = EINA_TRUE;
_edje_recalc(obj->ed);
return 0;
}
int program_id = pr->id;
Edje_Running_Program *runp;
Eina_List *l;
- obj->ed->walking_actions = 1;
+ obj->ed->walking_actions = EINA_TRUE;
EINA_LIST_FOREACH(obj->ed->actions, l, runp)
if (program_id == runp->program->id)
_edje_program_end(obj->ed, runp);
- obj->ed->walking_actions = 0;
+ obj->ed->walking_actions = EINA_FALSE;
return 0;
}
if (ed->processing_messages)
{
- ed->delete_me = 1;
+ ed->delete_me = EINA_TRUE;
return;
}
_edje_message_del(ed);
if (!r) return NULL; \
\
r->ref = 1; \
- r->delete_me = 0; \
+ r->delete_me = EINA_FALSE; \
r->patterns_size = eina_list_count(lst); \
r->max_length = 0; \
r->patterns = (const char **) r->finals + r->patterns_size + 1; \
if (!r) return NULL; \
\
r->ref = 1; \
- r->delete_me = 0; \
+ r->delete_me = EINA_FALSE; \
r->patterns_size = count; \
r->max_length = 0; \
r->patterns = (const char **) r->finals + r->patterns_size + 1; \
{
if (!ppat) return ;
- ppat->delete_me = 1;
+ ppat->delete_me = EINA_TRUE;
ppat->ref--;
if (ppat->ref > 0) return;
_edje_match_states_free(ppat->states, 2);
int walking_callbacks;
- unsigned int dirty : 1;
- unsigned int recalc : 1;
- unsigned int delete_callbacks : 1;
- unsigned int just_added_callbacks : 1;
- unsigned int have_objects : 1;
- unsigned int paused : 1;
- unsigned int no_anim : 1;
- unsigned int calc_only : 1;
- unsigned int walking_actions : 1;
- unsigned int block_break : 1;
- unsigned int delete_me : 1;
- unsigned int postponed : 1;
- unsigned int freeze_calc : 1;
- unsigned int has_entries : 1;
- unsigned int entries_inited : 1;
+ Eina_Bool dirty : 1;
+ Eina_Bool recalc : 1;
+ Eina_Bool delete_callbacks : 1;
+ Eina_Bool just_added_callbacks : 1;
+ Eina_Bool have_objects : 1;
+ Eina_Bool paused : 1;
+ Eina_Bool no_anim : 1;
+ Eina_Bool calc_only : 1;
+ Eina_Bool walking_actions : 1;
+ Eina_Bool block_break : 1;
+ Eina_Bool delete_me : 1;
+ Eina_Bool postponed : 1;
+ Eina_Bool freeze_calc : 1;
+ Eina_Bool has_entries : 1;
+ Eina_Bool entries_inited : 1;
#ifdef EDJE_CALC_CACHE
- unsigned int text_part_change : 1;
- unsigned int all_part_change : 1;
+ Eina_Bool text_part_change : 1;
+ Eina_Bool all_part_change : 1;
#endif
- unsigned int have_mapped_part : 1;
- unsigned int recalc_call : 1;
- unsigned int update_hints : 1;
- unsigned int recalc_hints : 1;
+ Eina_Bool have_mapped_part : 1;
+ Eina_Bool recalc_call : 1;
+ Eina_Bool update_hints : 1;
+ Eina_Bool recalc_hints : 1;
};
struct _Edje_Calc_Params
Edje *edje;
Edje_Program *program;
double start_time;
- char delete_me : 1;
+ Eina_Bool delete_me : 1;
};
struct _Edje_Signal_Callback
const char *source;
Edje_Signal_Cb func;
void *data;
- unsigned char just_added : 1;
- unsigned char delete_me : 1;
- unsigned char propagate : 1;
+ Eina_Bool just_added : 1;
+ Eina_Bool delete_me : 1;
+ Eina_Bool propagate : 1;
};
struct _Edje_Text_Insert_Filter_Callback
if (ed->walking_callbacks)
{
escb->just_added = 1;
- ed->just_added_callbacks = 1;
+ ed->just_added_callbacks = EINA_TRUE;
}
else
_edje_callbacks_patterns_clean(ed);
if (ed->walking_callbacks)
{
escb->just_added = 1;
- ed->just_added_callbacks = 1;
+ ed->just_added_callbacks = EINA_TRUE;
}
else
_edje_callbacks_patterns_clean(ed);
data = escb->data;
if (ed->walking_callbacks)
{
- escb->delete_me = 1;
- ed->delete_callbacks = 1;
+ escb->delete_me = EINA_TRUE;
+ ed->delete_callbacks = EINA_TRUE;
}
else
{
data2 = escb->data;
if (ed->walking_callbacks)
{
- escb->delete_me = 1;
- ed->delete_callbacks = 1;
+ escb->delete_me = EINA_TRUE;
+ ed->delete_callbacks = EINA_TRUE;
}
else
{
if (play)
{
if (!ed->paused) return;
- ed->paused = 0;
+ ed->paused = EINA_FALSE;
t = ecore_time_get() - ed->paused_at;
EINA_LIST_FOREACH(ed->actions, l, runp)
runp->start_time += t;
}
}
_edje_recalc(ed);
- runp->delete_me = 1;
+ runp->delete_me = EINA_TRUE;
if (!ed->walking_actions)
{
_edje_anim_count--;
}
}
_edje_recalc(ed);
- runp->delete_me = 1;
+ runp->delete_me = EINA_TRUE;
// pname = runp->program->name;
if (!ed->walking_actions)
{
if (!ed->walking_callbacks &&
((ed->delete_callbacks) || (ed->just_added_callbacks)))
{
- ed->delete_callbacks = 0;
- ed->just_added_callbacks = 0;
+ ed->delete_callbacks = EINA_FALSE;
+ ed->just_added_callbacks = EINA_FALSE;
l = ed->callbacks;
while (l)
{
if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
return EINA_FALSE;
rp->drag->size.x = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
- rp->edje->recalc_call = 1;
- rp->edje->dirty = 1;
+ rp->edje->recalc_call = EINA_TRUE;
+ rp->edje->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
return EINA_FALSE;
rp->drag->size.y = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
- rp->edje->recalc_call = 1;
- rp->edje->dirty = 1;
+ rp->edje->recalc_call = EINA_TRUE;
+ rp->edje->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
evas_object_resize(ed->base.clipper, 20000, 20000);
evas_object_pass_events_set(ed->base.clipper, 1);
ed->is_rtl = EINA_FALSE;
- ed->have_objects = 1;
+ ed->have_objects = EINA_TRUE;
ed->references = 1;
ed->user_defined = NULL;
ed->color_classes = eina_hash_string_small_new(_edje_color_class_free);
if (ed->have_mapped_part)
{
- ed->dirty = 1;
+ ed->dirty = EINA_TRUE;
_edje_recalc_do(ed);
}
else
ed->w = w;
ed->h = h;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
if (_edje_script_only(ed))
{
return;
}
// evas_object_resize(ed->clipper, ed->w, ed->h);
- ed->dirty = 1;
+ ed->dirty = EINA_TRUE;
_edje_recalc_do(ed);
_edje_emit(ed, "resize", NULL);
}
rp->swallow_params.min.h = 0;
rp->swallow_params.max.w = 0;
rp->swallow_params.max.h = 0;
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
EINA_LIST_FREE(_edje_freeze_calc_list, ed)
{
_edje_thaw_edje(ed);
- ed->freeze_calc = 0;
+ ed->freeze_calc = EINA_FALSE;
}
}
#else
Edje *ed;
ed = eina_list_data_get(members);
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
_edje_emit(ed, "color_class,set", color_class);
Edje *ed;
ed = eina_list_data_get(members);
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
_edje_emit(ed, "color_class,del", color_class);
cc->g3 = g3;
cc->b3 = b3;
cc->a3 = a3;
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
return EINA_TRUE;
cc->b3 = b3;
cc->a3 = a3;
eina_hash_direct_add(ed->color_classes, cc->name, cc);
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
for (i = 0; i < ed->table_parts_size; i++)
edje_object_color_class_del(rp->swallowed_object, color_class);
}
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
_edje_emit(ed, "color_class,del", color_class);
Edje *ed;
ed = eina_list_data_get(members);
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
_edje_textblock_style_all_update(ed);
#ifdef EDJE_CALC_CACHE
- ed->text_part_change = 1;
+ ed->text_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
members = eina_list_next(members);
Edje *ed;
ed = eina_list_data_get(members);
- ed->dirty = 1;
+ ed->dirty = EINA_TRUE;
_edje_textblock_style_all_update(ed);
#ifdef EDJE_CALC_CACHE
- ed->text_part_change = 1;
+ ed->text_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
members = eina_list_next(members);
font, size);
}
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->text_part_change = 1;
+ ed->text_part_change = EINA_TRUE;
#endif
_edje_textblock_style_all_update(ed);
_edje_recalc(ed);
_edje_entry_text_markup_set(rp, text);
else
if (text) rp->text.text = eina_stringshare_add(text);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
- rp->edje->recalc_hints = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
+ rp->edje->recalc_hints = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
eina_stringshare_replace(&rp->text.text, text);
}
}
- rp->edje->dirty = 1;
+ rp->edje->dirty = EINA_TRUE;
rp->edje->recalc_call = 1;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
evas_textblock_style_set(ts, style);
evas_object_textblock_style_user_push(rp->object, ts);
evas_textblock_style_free(ts);
- ed->recalc_hints = 1;
+ ed->recalc_hints = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
if (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) return;
evas_object_textblock_style_user_pop(rp->object);
- ed->recalc_hints = 1;
+ ed->recalc_hints = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
if ((rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) return;
if (rp->part->entry_mode <= EDJE_ENTRY_EDIT_MODE_NONE) return;
_edje_entry_text_markup_insert(rp, text);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
- rp->edje->recalc_hints = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
+ rp->edje->recalc_hints = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
if (!rp) return;
if ((rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) return;
_edje_object_part_text_raw_append(obj, rp, part, text);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
- rp->edje->recalc_hints = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
+ rp->edje->recalc_hints = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
parent = evas_object_smart_parent_get(obj);
ed = _edje_fetch(parent);
- ed->dirty = 1;
- ed->recalc_call = 1; // ZZZ: ???
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE; // ZZZ: ???
_edje_recalc(ed);
}
rp->swallow_params.min.h = 0;
rp->swallow_params.max.w = 0;
rp->swallow_params.max.h = 0;
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
ed = _edje_fetch(obj);
if (!ed) return;
- ed->dirty = 1;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
pf2 = _edje_freeze_val;
return EINA_FALSE;
}
- ed->calc_only = 1;
+ ed->calc_only = EINA_TRUE;
/* Need to recalc before providing the object. */
- ed->dirty = 1;
+ ed->dirty = EINA_TRUE;
_edje_recalc_do(ed);
for (i = 0; i < ed->table_parts_size; i++)
if (yy2 < rpy2) yy2 = rpy2;
}
- ed->calc_only = 0;
+ ed->calc_only = EINA_FALSE;
if (x) *x = xx1;
if (y) *y = yy1;
return;
}
reset_maxwh = 1;
- ed->calc_only = 1;
+ ed->calc_only = EINA_TRUE;
pw = ed->w;
ph = ed->h;
unsigned int i;
okw = okh = 0;
- ed->dirty = 1;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
_edje_recalc_do(ed);
if (reset_maxwh)
ed->w = pw;
ed->h = ph;
- ed->dirty = 1;
+ ed->dirty = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = EINA_TRUE;
#endif
_edje_recalc(ed);
- ed->calc_only = 0;
+ ed->calc_only = EINA_FALSE;
}
/* FIXME: Correctly return other states */
if ((rp->drag->size.x == FROM_DOUBLE(dw)) && (rp->drag->size.y == FROM_DOUBLE(dh))) return EINA_TRUE;
rp->drag->size.x = FROM_DOUBLE(dw);
rp->drag->size.y = FROM_DOUBLE(dh);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
{
Edje_Real_Part *rp = data;
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
evas_object_event_callback_add
(child, EVAS_CALLBACK_DEL, _edje_box_child_del_cb, rp);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
evas_object_event_callback_del_full
(child, EVAS_CALLBACK_DEL, _edje_box_child_del_cb, rp);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
}
}
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
evas_object_event_callback_add
(child, EVAS_CALLBACK_DEL, _edje_table_child_del_cb, rp);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
evas_object_event_callback_del_full
(child, EVAS_CALLBACK_DEL, _edje_table_child_del_cb, rp);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
#endif
ed = evas_object_smart_data_get(o);
if (!ed) continue;
ed->persp = NULL;
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
_edje_recalc_do(ed);
}
free(ps);
if (!ed) continue;
if (!ed->persp)
{
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
_edje_recalc_do(ed);
}
}
if (!ed) continue;
if (!ed->persp)
{
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
_edje_recalc_do(ed);
}
}
if (!ed) continue;
if (!ed->persp)
{
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
_edje_recalc_do(ed);
}
}
}
ed->persp = ps;
if (ps) ps->users = eina_list_append(ps->users, obj);
- ed->dirty = 1;
- ed->recalc_call = 1;
+ ed->dirty = EINA_TRUE;
+ ed->recalc_call = EINA_TRUE;
_edje_recalc_do(ed);
}
ed->update_hints = !!update;
if (update)
{
- ed->recalc_hints = 1;
+ ed->recalc_hints = EINA_TRUE;
_edje_recalc(ed);
}
}
if (!ed) return ret;
ed->block--;
- if (ed->block == 0) ed->block_break = 0;
+ if (ed->block == 0) ed->block_break = EINA_FALSE;
ret = ed->block;
_edje_unref(ed);
return ret;
void
_edje_block_violate(Edje *ed)
{
- if (ed->block > 0) ed->block_break = 1;
+ if (ed->block > 0) ed->block_break = EINA_TRUE;
}
void
rp = data;
_edje_real_part_swallow_hints_update(rp);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
_edje_recalc(rp->edje);
return;
}
{
if (hints_update)
_edje_real_part_swallow_hints_update(rp);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
- rp->edje->recalc_hints = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
+ rp->edje->recalc_hints = EINA_TRUE;
_edje_recalc(rp->edje);
return;
}
if (rp->part->precise_is_inside)
evas_object_precise_is_inside_set(obj_swallow, 1);
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
- rp->edje->recalc_hints = 1;
+ rp->edje->dirty = EINA_TRUE;
+ rp->edje->recalc_call = EINA_TRUE;
+ rp->edje->recalc_hints = EINA_TRUE;
_edje_recalc(rp->edje);
}