forked from enlightenment/efl
and have sane default values for weight and align.
SVN revision: 36430
This commit is contained in:
parent
07447cf079
commit
09cfefd9dc
|
@ -838,12 +838,12 @@ EAPI void
|
||||||
evas_object_size_hint_align_get(const Evas_Object *obj, double *x, double *y)
|
evas_object_size_hint_align_get(const Evas_Object *obj, double *x, double *y)
|
||||||
{
|
{
|
||||||
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
|
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;
|
return;
|
||||||
MAGIC_CHECK_END();
|
MAGIC_CHECK_END();
|
||||||
if ((!obj->size_hints) || obj->delete_me)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (x) *x = obj->size_hints->align.x;
|
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)
|
evas_object_size_hint_weight_get(const Evas_Object *obj, double *x, double *y)
|
||||||
{
|
{
|
||||||
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
|
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;
|
return;
|
||||||
MAGIC_CHECK_END();
|
MAGIC_CHECK_END();
|
||||||
if ((!obj->size_hints) || obj->delete_me)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (x) *x = obj->size_hints->weight.x;
|
if (x) *x = obj->size_hints->weight.x;
|
||||||
|
|
Loading…
Reference in New Issue