From: raster Date: Sat, 4 Oct 2008 16:12:48 +0000 (+0000) Subject: and have sane default values for weight and align. X-Git-Tag: accepted/2.0/20130306.225542~242^2~2789 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09ff083ca386d745b12fbfedca30b0d864b1300f;p=profile%2Fivi%2Fevas.git and have sane default values for weight and align. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@36430 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_main.c b/src/lib/canvas/evas_object_main.c index 6802a66..e6466d9 100644 --- a/src/lib/canvas/evas_object_main.c +++ b/src/lib/canvas/evas_object_main.c @@ -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;