From: Tomas Frydrych Date: Thu, 14 Jun 2007 15:56:22 +0000 (+0000) Subject: fixed vbox and hbox pack functions X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=699297ad64bd12d185e0b01806ab6412fa1f85b8;p=profile%2Fivi%2Fclutter.git fixed vbox and hbox pack functions --- diff --git a/ChangeLog b/ChangeLog index 7d451f3..6208828 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-06-14 Tomas Frydrych + + * clutter/clutter-vbox.c: + * clutter/clutter-hbox.c: + (clutter_vbox_pack_child): + (clutter_hbox_pack_child): + Fixed child coords. + 2007-06-14 Emmanuele Bassi * clutter/clutter-box.[ch]: Base class for layout containers. diff --git a/clutter/clutter-hbox.c b/clutter/clutter-hbox.c index fdd8f81..3f1e56e 100644 --- a/clutter/clutter-hbox.c +++ b/clutter/clutter-hbox.c @@ -85,8 +85,8 @@ clutter_hbox_pack_child (ClutterBox *box, clutter_actor_get_geometry (CLUTTER_ACTOR (box), &box_geom); clutter_actor_get_geometry (child->actor, &child_geom); - child_geom.x = box_geom.x + box_geom.width + spacing; - child_geom.y = box_geom.y; + child_geom.x = box_geom.width + spacing; + child_geom.y = 0; clutter_actor_set_geometry (child->actor, &child_geom); } diff --git a/clutter/clutter-vbox.c b/clutter/clutter-vbox.c index 1e1e3fc..9be7ac4 100644 --- a/clutter/clutter-vbox.c +++ b/clutter/clutter-vbox.c @@ -85,8 +85,8 @@ clutter_vbox_pack_child (ClutterBox *box, clutter_actor_get_geometry (CLUTTER_ACTOR (box), &box_geom); clutter_actor_get_geometry (child->actor, &child_geom); - child_geom.x = box_geom.x; - child_geom.y = box_geom.y + box_geom.height + spacing; + child_geom.x = 0; + child_geom.y = box_geom.height + spacing; clutter_actor_set_geometry (child->actor, &child_geom); }