_edje_parts_id_switch(ed, rp, prev);
evas_object_stack_below(rp->object, prev->object);
- if (rp->typedata.swallow->swallowed_object)
+ if ((rp->typedata.swallow) && (rp->typedata.swallow->swallowed_object))
evas_object_stack_above(rp->typedata.swallow->swallowed_object, rp->object);
_edje_edit_flag_script_dirty(eed, EINA_TRUE);
_edje_parts_id_switch(ed, rp, next);
evas_object_stack_above(rp->object, next->object);
- if (rp->typedata.swallow->swallowed_object)
+ if ((rp->typedata.swallow) && (rp->typedata.swallow->swallowed_object))
evas_object_stack_above(rp->typedata.swallow->swallowed_object, rp->object);
_edje_edit_flag_script_dirty(eed, EINA_TRUE);
/* unset clipping */
if (!clip_to)
{
- //printf("UnSet clip_to for part: %s\n", part);
-
if (rp->part->clip_to_id >= 0)
{
clip = ed->table_parts[rp->part->clip_to_id % ed->table_parts_size];
}
evas_object_clip_set(rp->object, ed->base->clipper);
- if (rp->typedata.swallow->swallowed_object)
- evas_object_clip_set(rp->typedata.swallow->swallowed_object, ed->base->clipper);
+ if ((rp->typedata.swallow) && (rp->typedata.swallow->swallowed_object))
+ evas_object_clip_set(rp->typedata.swallow->swallowed_object, ed->base->clipper);
rp->part->clip_to_id = -1;
evas_object_pass_events_set(clip->object, 1);
evas_object_pointer_mode_set(clip->object, EVAS_OBJECT_POINTER_MODE_NOGRAB);
evas_object_clip_set(rp->object, clip->object);
- if (rp->typedata.swallow->swallowed_object)
+ if ((rp->typedata.swallow) && (rp->typedata.swallow->swallowed_object))
evas_object_clip_set(rp->typedata.swallow->swallowed_object, clip->object);
edje_object_calc_force(obj);
_edje_if_string_free(ed, rp->part->source);
- if (rp->typedata.swallow->swallowed_object)
+ if ((rp->typedata.swallow) && (rp->typedata.swallow->swallowed_object))
{
_edje_real_part_swallow_clear(ed, rp);
evas_object_del(rp->typedata.swallow->swallowed_object);