[clutter/clutter-1.18] grid-layout: Use correct orientation when requesting preferred child size



commit 70835c904a63cf40e175163ef33cbe62f0bfbe89
Author: Bastian Winkler <buz netbuz org>
Date:   Tue Mar 11 12:35:03 2014 +0100

    grid-layout: Use correct orientation when requesting preferred child size
    
    Otherwise width and height are swapped.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725722

 clutter/clutter-grid-layout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-grid-layout.c b/clutter/clutter-grid-layout.c
index 7724c92..e9ef8f7 100644
--- a/clutter/clutter-grid-layout.c
+++ b/clutter/clutter-grid-layout.c
@@ -510,7 +510,7 @@ compute_request_for_child (ClutterGridRequest *request,
     }
   else
     {
-      if (orientation == CLUTTER_ORIENTATION_VERTICAL)
+      if (orientation == CLUTTER_ORIENTATION_HORIZONTAL)
         clutter_actor_get_preferred_width (child, -1, minimum, natural);
       else
         clutter_actor_get_preferred_height (child, -1, minimum, natural);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]