From 09cfefd9dc519ff48dc4904c0353d6c33bf3e2b9 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 4 Oct 2008 16:12:48 +0000 Subject: [PATCH] and have sane default values for weight and align. SVN revision: 36430 --- legacy/evas/src/lib/canvas/evas_object_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_main.c b/legacy/evas/src/lib/canvas/evas_object_main.c index 6802a66305..e6466d9c25 100644 --- a/legacy/evas/src/lib/canvas/evas_object_main.c +++ b/legacy/evas/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;