diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-03-30 02:24:00 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-03-30 08:19:30 -0400 |
commit | 7a65db0402562ac1339a71d875275b2ac2c72f76 (patch) | |
tree | 75570624fc63541233ef2dcc5ec0629217ae3254 /gtk/gtkgrid.c | |
parent | 93b0cecd7e563a4f391652e7308700c15ccce7da (diff) | |
download | gtk+-7a65db0402562ac1339a71d875275b2ac2c72f76.tar.gz |
GtkGrid: Add forgotten RTL flipping
How did we manage to add a non-RTL savy container in GTK+ 3.0 ?
Diffstat (limited to 'gtk/gtkgrid.c')
-rw-r--r-- | gtk/gtkgrid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c index 4719857944..440b4d5400 100644 --- a/gtk/gtkgrid.c +++ b/gtk/gtkgrid.c @@ -1195,6 +1195,10 @@ gtk_grid_request_allocate_children (GtkGridRequest *request) child_allocation.width = MAX (1, width); child_allocation.height = MAX (1, height); + if (gtk_widget_get_direction (GTK_WIDGET (request->grid)) == GTK_TEXT_DIR_RTL) + child_allocation.x = allocation.x + allocation.width + - (child_allocation.x - allocation.x) - child_allocation.width; + gtk_widget_size_allocate (child->widget, &child_allocation); } } |