Set the stage resizable in test-constraints
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 19 May 2010 17:20:27 +0000 (18:20 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 19 May 2010 17:20:27 +0000 (18:20 +0100)
To demonstrate that constraints can be used to reposition actors in a
resizable stage, set the :user-resizable property to TRUE, and spend the
next 15 minutes playing with the stage size.

tests/interactive/test-constraints.c

index 86f5d4d..5c0fd43 100644 (file)
@@ -126,6 +126,7 @@ test_constraints_main (int argc, char *argv[])
   stage = clutter_stage_new ();
   g_signal_connect (stage, "destroy", G_CALLBACK (clutter_main_quit), NULL);
   clutter_stage_set_title (CLUTTER_STAGE (stage), "Constraints");
+  clutter_stage_set_user_resizable (CLUTTER_STAGE (stage), TRUE);
   clutter_actor_set_size (stage, 800, 600);
 
   /* main rect */