[clutter] grid-layout: Insert new rows/columns at the appropriate position
- From: Bastian Winkler <bwinkler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] grid-layout: Insert new rows/columns at the appropriate position
- Date: Tue, 12 Jun 2012 21:51:16 +0000 (UTC)
commit 1bdd21481102fa8078cb3dd546bacdcd39e020e9
Author: Bastian Winkler <buz netbuz org>
Date: Tue Jun 12 14:30:00 2012 +0200
grid-layout: Insert new rows/columns at the appropriate position
clutter/clutter-grid-layout.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-grid-layout.c b/clutter/clutter-grid-layout.c
index c482af7..2ae6d96 100644
--- a/clutter/clutter-grid-layout.c
+++ b/clutter/clutter-grid-layout.c
@@ -370,6 +370,8 @@ clutter_grid_request_update_child_attach (ClutterGridRequest *request,
}
sibling = clutter_actor_get_previous_sibling (actor);
+ if (sibling)
+ clutter_grid_layout_insert_next_to (request->grid, sibling, side);
grid_attach_next_to (request->grid, actor, sibling, side,
CHILD_WIDTH (grid_child),
CHILD_HEIGHT (grid_child));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]