and have sane default values for weight and align.

SVN revision: 36430
This commit is contained in:
Carsten Haitzler 2008-10-04 16:12:48 +00:00
parent 07447cf079
commit 09cfefd9dc
1 changed files with 4 additions and 4 deletions

View File

@ -838,12 +838,12 @@ EAPI void
evas_object_size_hint_align_get(const Evas_Object *obj, double *x, double *y)
{
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
if (x) *x = 0.0; if (y) *y = 0.0;
if (x) *x = 0.5; if (y) *y = 0.5;
return;
MAGIC_CHECK_END();
if ((!obj->size_hints) || obj->delete_me)
{
if (x) *x = 0.0; if (y) *y = 0.0;
if (x) *x = 0.5; if (y) *y = 0.5;
return;
}
if (x) *x = obj->size_hints->align.x;
@ -893,12 +893,12 @@ EAPI void
evas_object_size_hint_weight_get(const Evas_Object *obj, double *x, double *y)
{
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
if (x) *x = 0.0; if (y) *y = 0.0;
if (x) *x = 1.0; if (y) *y = 1.0;
return;
MAGIC_CHECK_END();
if ((!obj->size_hints) || obj->delete_me)
{
if (x) *x = 0.0; if (y) *y = 0.0;
if (x) *x = 1.0; if (y) *y = 1.0;
return;
}
if (x) *x = obj->size_hints->weight.x;