if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(0);
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERR(0);
sd->frozen++;
return sd->frozen;
}
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(0);
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERR(0);
sd->frozen--;
if (sd->frozen <= 0) _e_layout_smart_reconfigure(sd);
return sd->frozen;
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR();
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERRNR();
if (w < 1) w = 1;
if (h < 1) h = 1;
if ((sd->vw == w) && (sd->vh == h)) return;
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR();
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERRNR();
if (w) *w = sd->vw;
if (h) *h = sd->vh;
}
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR();
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERRNR();
if (vx) *vx = (cx - sd->x) * ((double)(sd->vw) / sd->w);
if (vy) *vy = (cy - sd->y) * ((double)(sd->vh) / sd->h);
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR();
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERRNR();
if (cx) *cx = vx * ((double)(sd->w) / sd->vw) + sd->x;
if (cy) *cy = vy * ((double)(sd->h) / sd->vh) + sd->y;
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR();
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERRNR();
li = _e_layout_smart_adopt(sd, child);
sd->items = eina_inlist_append(sd->items, EINA_INLIST_GET(li));
evas_object_lower(child);
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR() NULL;
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERRNR() NULL;
if (!sd->items) return NULL;
li = (E_Layout_Item*)sd->items->last;
return li->obj;
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR() NULL;
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERRNR() NULL;
EINA_INLIST_FOREACH(sd->items, li)
l = eina_list_append(l, li->obj);
return l;
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR() NULL;
sd = evas_object_smart_data_get(obj);
+ if (!sd) SMARTERRNR() NULL;
if (!sd->items) return NULL;
EINA_INLIST_REVERSE_FOREACH(sd->items, li)
if (E_INSIDE(x, y, li->x, li->y, li->w, li->h))