[clutter] grid-layout: Use correct orientation when requesting preferred child size
- From: Bastian Winkler <bwinkler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] grid-layout: Use correct orientation when requesting preferred child size
- Date: Tue, 11 Mar 2014 23:40:11 +0000 (UTC)
commit 25a092b604adcca3493b54f7520553de9a54f286
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 bdb682a..ebd42eb 100644
--- a/clutter/clutter-grid-layout.c
+++ b/clutter/clutter-grid-layout.c
@@ -509,7 +509,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]