From 2831addcf5ef1e4070fd2fabbe1ce71385b53062 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 12 Oct 2010 14:53:20 +0100 Subject: [PATCH] test-flow-layout: Track stage size by default Instead of requiring a special command line switch. --- tests/interactive/test-flow-layout.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/interactive/test-flow-layout.c b/tests/interactive/test-flow-layout.c index b126d3d17..22b3cba4d 100644 --- a/tests/interactive/test-flow-layout.c +++ b/tests/interactive/test-flow-layout.c @@ -8,7 +8,7 @@ static gboolean is_homogeneous = FALSE; static gboolean vertical = FALSE; static gboolean random_size = FALSE; -static gboolean fit_to_stage = FALSE; +static gboolean fixed_size = FALSE; static gint n_rects = N_RECTS; static gint x_spacing = 0; @@ -58,11 +58,11 @@ static GOptionEntry entries[] = { "Vertical spacing between elements", "PX" }, { - "fit-to-stage", 0, + "fixed-size", 'f', 0, G_OPTION_ARG_NONE, - &fit_to_stage, - "Fit to the stage size", NULL + &fixed_size, + "Fix the layout size", NULL }, { NULL } }; @@ -109,7 +109,7 @@ test_flow_layout_main (int argc, char *argv[]) clutter_box_set_color (CLUTTER_BOX (box), &box_color); clutter_container_add_actor (CLUTTER_CONTAINER (stage), box); - if (fit_to_stage) + if (!fixed_size) { clutter_actor_add_constraint (box, clutter_bind_constraint_new (stage, CLUTTER_BIND_WIDTH, 0.0)); clutter_actor_add_constraint (box, clutter_bind_constraint_new (stage, CLUTTER_BIND_HEIGHT, 0.0));