mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
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.
This commit is contained in:
parent
951f13bb8d
commit
18b90f100c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user