mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
fixed vbox and hbox pack functions
This commit is contained in:
parent
342e048d71
commit
699297ad64
@ -1,3 +1,11 @@
|
||||
2007-06-14 Tomas Frydrych <tf@openedhand.com>
|
||||
|
||||
* clutter/clutter-vbox.c:
|
||||
* clutter/clutter-hbox.c:
|
||||
(clutter_vbox_pack_child):
|
||||
(clutter_hbox_pack_child):
|
||||
Fixed child coords.
|
||||
|
||||
2007-06-14 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-box.[ch]: Base class for layout containers.
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user