From 18b90f100c259db2e5ef19874277b3d5d50791f0 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Fri, 28 Jan 2011 11:36:20 +0000 Subject: [PATCH] docs: Don't set explicit size on button 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/cookbook/examples/actors-composite-main.c b/doc/cookbook/examples/actors-composite-main.c index 2173894..770b8b3 100644 --- a/doc/cookbook/examples/actors-composite-main.c +++ b/doc/cookbook/examples/actors-composite-main.c @@ -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, -- 2.7.4