summaryrefslogtreecommitdiff
path: root/gtk/gtkgrid.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-10-22 16:43:45 +0200
committerMatthias Clasen <mclasen@redhat.com>2010-10-22 16:43:45 +0200
commita9204e65dd9beed0181cc6b3cbd19586129ae509 (patch)
tree0629109e7da1d17a3ee626761f045ed1c0c3e5f6 /gtk/gtkgrid.c
parent8f0ae8e8a3dd3e7dfa1cdb49bbfab61b8339ce9f (diff)
downloadgtk+-a9204e65dd9beed0181cc6b3cbd19586129ae509.tar.gz
Remove child flipping from GtkGrid
We decided that this is not really the right thing to do, for one thing, because it doesn't flip ::expand and ::margin properties of children.
Diffstat (limited to 'gtk/gtkgrid.c')
-rw-r--r--gtk/gtkgrid.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c
index 60d55b80d9..f1109b5fab 100644
--- a/gtk/gtkgrid.c
+++ b/gtk/gtkgrid.c
@@ -196,44 +196,6 @@ gtk_grid_set_orientation (GtkGrid *grid,
priv->orientation = orientation;
g_object_notify (G_OBJECT (grid), "orientation");
-
- for (list = priv->children; list; list = list->next)
- {
- child = list->data;
-
- left = CHILD_LEFT (child);
- top = CHILD_TOP (child);
- width = CHILD_WIDTH (child);
- height = CHILD_HEIGHT (child);
-
- if (orientation == GTK_ORIENTATION_VERTICAL)
- {
- CHILD_LEFT (child) = - (top + height);
- CHILD_TOP (child) = left;
- CHILD_WIDTH (child) = height;
- CHILD_HEIGHT (child) = width;
- }
- else
- {
- CHILD_LEFT (child) = top;
- CHILD_TOP (child) = - (left + width);
- CHILD_WIDTH (child) = height;
- CHILD_HEIGHT (child) = width;
- }
- }
-
- gtk_widget_queue_resize (GTK_WIDGET (grid));
-
- for (list = priv->children; list; list = list->next)
- {
- child = list->data;
-
- gtk_widget_child_notify (child->widget, "left-attach");
- gtk_widget_child_notify (child->widget, "top-attach");
- gtk_widget_child_notify (child->widget, "width");
- gtk_widget_child_notify (child->widget, "height");
-
- }
}
}