grid-layout: Fix attach position for horizontal orientation
authorBastian Winkler <buz@netbuz.org>
Mon, 11 Jun 2012 15:17:46 +0000 (17:17 +0200)
committerBastian Winkler <buz@netbuz.org>
Tue, 12 Jun 2012 21:50:44 +0000 (23:50 +0200)
Switch the attach position. A new child should be positioned right of
it's previous sibling in ltr mode.

clutter/clutter-grid-layout.c

index 63752aa..c482af7 100644 (file)
@@ -360,7 +360,7 @@ clutter_grid_request_update_child_attach (ClutterGridRequest *request,
 
           td = clutter_actor_get_text_direction (container);
           rtl = (td == CLUTTER_TEXT_DIRECTION_RTL) ? TRUE : FALSE;
-          side = rtl ? CLUTTER_GRID_POSITION_RIGHT : CLUTTER_GRID_POSITION_LEFT;
+          side = rtl ? CLUTTER_GRID_POSITION_LEFT : CLUTTER_GRID_POSITION_RIGHT;
         }
       else
         {