docs: Don't set explicit size on button
authorElliot Smith <elliot.smith@intel.com>
Fri, 28 Jan 2011 11:36:20 +0000 (11:36 +0000)
committerElliot Smith <elliot.smith@intel.com>
Mon, 31 Jan 2011 10:08:07 +0000 (10:08 +0000)
Rather than set a size on the CbButton instance, let it
size itself automatically, based on the size requisition
functions.

doc/cookbook/examples/actors-composite-main.c

index 2173894..770b8b3 100644 (file)
@@ -53,9 +53,9 @@ main (int   argc,
    * or more properties with a single call to g_object_new()
    */
 
+  /* note that the size of the button is left to Clutter's size requisition */
   cb_button_set_text_color (CB_BUTTON (button), &white_color);
   cb_button_set_background_color (CB_BUTTON (button), &yellow_color);
-  clutter_actor_set_size (button, 200, 100);
   g_signal_connect (button, "clicked", G_CALLBACK (clicked), NULL);
 
   align_x_constraint = clutter_align_constraint_new (stage,