forked from enlightenment/efl
parent
c56d5ba638
commit
40a63c7965
|
@ -654,7 +654,7 @@ evas_object_size_hint_min_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
|
|||
MAGIC_CHECK_END();
|
||||
if (obj->delete_me)
|
||||
return;
|
||||
if (obj->size_hints)
|
||||
if (!obj->size_hints)
|
||||
obj->size_hints = calloc(1, sizeof(*obj->size_hints));
|
||||
|
||||
obj->size_hints->min.w = w;
|
||||
|
@ -712,7 +712,7 @@ evas_object_size_hint_max_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
|
|||
MAGIC_CHECK_END();
|
||||
if (obj->delete_me)
|
||||
return;
|
||||
if (obj->size_hints)
|
||||
if (!obj->size_hints)
|
||||
obj->size_hints = calloc(1, sizeof(*obj->size_hints));
|
||||
|
||||
obj->size_hints->max.w = w;
|
||||
|
@ -770,7 +770,8 @@ evas_object_size_hint_request_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
|
|||
MAGIC_CHECK_END();
|
||||
if (obj->delete_me)
|
||||
return;
|
||||
if (obj->size_hints) obj->size_hints = calloc(1, sizeof(*obj->size_hints));
|
||||
if (!obj->size_hints)
|
||||
obj->size_hints = calloc(1, sizeof(*obj->size_hints));
|
||||
|
||||
obj->size_hints->request.w = w;
|
||||
obj->size_hints->request.h = h;
|
||||
|
@ -832,7 +833,7 @@ evas_object_size_hint_aspect_set(Evas_Object *obj, Evas_Aspect_Control aspect, E
|
|||
MAGIC_CHECK_END();
|
||||
if (obj->delete_me)
|
||||
return;
|
||||
if (obj->size_hints)
|
||||
if (!obj->size_hints)
|
||||
obj->size_hints = calloc(1, sizeof(*obj->size_hints));
|
||||
|
||||
obj->size_hints->aspect.mode = aspect;
|
||||
|
|
Loading…
Reference in New Issue