From 4360fcccf44fe17bb385a9780bb9b2d6f5e19bb7 Mon Sep 17 00:00:00 2001 From: Kerrick Staley Date: Thu, 29 Dec 2011 03:15:05 -0600 Subject: [PATCH] Fix spelling in Clutter Cookbook: ouest -> west --- doc/cookbook/examples/textures-split-go.c | 26 ++++++++++---------- doc/cookbook/examples/textures-sub-texture.c | 2 +- doc/cookbook/textures.xml | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/doc/cookbook/examples/textures-split-go.c b/doc/cookbook/examples/textures-split-go.c index 11cfd1493..f94385b15 100644 --- a/doc/cookbook/examples/textures-split-go.c +++ b/doc/cookbook/examples/textures-split-go.c @@ -3,7 +3,7 @@ /* Context will be used to carry interesting variables between functions */ typedef struct { - ClutterActor *sub_no, *sub_ne, *sub_so, *sub_se; + ClutterActor *sub_nw, *sub_ne, *sub_sw, *sub_se; gfloat image_width, image_height; } Context; @@ -15,7 +15,7 @@ go_away (gpointer data) { Context *context = data; - clutter_actor_animate (context->sub_no, CLUTTER_EASE_OUT_CUBIC, 1500, + clutter_actor_animate (context->sub_nw, CLUTTER_EASE_OUT_CUBIC, 1500, "x", -context->image_width, "y", -context->image_height, "rotation-angle-z", 2000., @@ -25,7 +25,7 @@ go_away (gpointer data) "y", -context->image_height, "rotation-angle-z", 2000., NULL); - clutter_actor_animate (context->sub_so, CLUTTER_EASE_OUT_CUBIC, 1500, + clutter_actor_animate (context->sub_sw, CLUTTER_EASE_OUT_CUBIC, 1500, "x", -context->image_width, "y", +context->image_height, "rotation-angle-z", 2000., @@ -46,8 +46,8 @@ split (gpointer data) Context *context = data; gfloat x, y; - clutter_actor_get_position (context->sub_no, &x, &y); - clutter_actor_animate (context->sub_no, CLUTTER_EASE_OUT_CUBIC, 300, + clutter_actor_get_position (context->sub_nw, &x, &y); + clutter_actor_animate (context->sub_nw, CLUTTER_EASE_OUT_CUBIC, 300, "x", x - 10, "y", y - 10, NULL); @@ -56,8 +56,8 @@ split (gpointer data) "x", x + 10, "y", y - 10, NULL); - clutter_actor_get_position (context->sub_so, &x, &y); - clutter_actor_animate (context->sub_so, CLUTTER_EASE_OUT_CUBIC, 300, + clutter_actor_get_position (context->sub_sw, &x, &y); + clutter_actor_animate (context->sub_sw, CLUTTER_EASE_OUT_CUBIC, 300, "x", x - 10, "y", y + 10, NULL); @@ -136,12 +136,12 @@ main (int argc, /* Create four sub-textures from image, actually splitting the image in * four */ - context.sub_no = setup_sub (texture, image_width, image_height, + context.sub_nw = setup_sub (texture, image_width, image_height, 0, 0, image_width / 2 , image_width / 2); context.sub_ne = setup_sub (texture, image_width, image_height, image_width / 2 , 0, image_width / 2, image_width / 2); - context.sub_so = setup_sub (texture, image_width, image_height, + context.sub_sw = setup_sub (texture, image_width, image_height, 0.f, image_width / 2, image_width / 2, image_width / 2); context.sub_se = setup_sub (texture, image_width, image_height, @@ -155,13 +155,13 @@ main (int argc, /* Position the sub-texures in the middle of the screen, recreating the * original texture */ - clutter_actor_set_position (context.sub_no, + clutter_actor_set_position (context.sub_nw, stage_width / 2 - image_width / 4, stage_height / 2 - image_height / 4); clutter_actor_set_position (context.sub_ne, stage_width / 2 + image_width / 4, stage_height / 2 - image_height / 4); - clutter_actor_set_position (context.sub_so, + clutter_actor_set_position (context.sub_sw, stage_width / 2 - image_width / 4, stage_height / 2 + image_height / 4); clutter_actor_set_position (context.sub_se, @@ -169,8 +169,8 @@ main (int argc, stage_height / 2 + image_height / 4); /* Add the four sub-textures to the stage */ - clutter_container_add (CLUTTER_CONTAINER (stage), context.sub_no, - context.sub_ne, context.sub_so, context.sub_se, NULL); + clutter_container_add (CLUTTER_CONTAINER (stage), context.sub_nw, + context.sub_ne, context.sub_sw, context.sub_se, NULL); clutter_actor_show_all (stage); diff --git a/doc/cookbook/examples/textures-sub-texture.c b/doc/cookbook/examples/textures-sub-texture.c index 95fa263f1..5deda90d9 100644 --- a/doc/cookbook/examples/textures-sub-texture.c +++ b/doc/cookbook/examples/textures-sub-texture.c @@ -27,7 +27,7 @@ main (int argc, char **argv) texture = clutter_texture_get_cogl_texture (CLUTTER_TEXTURE (image)); /* Create a new Cogl texture from the handle above. That new texture is a - * rectangular region from image, more precisely the north ouest corner + * rectangular region from image, more precisely the northwest corner * of the image */ sub_texture = cogl_texture_new_from_sub_texture (texture, 0, 0, diff --git a/doc/cookbook/textures.xml b/doc/cookbook/textures.xml index e37b01ee3..927e8f5ed 100644 --- a/doc/cookbook/textures.xml +++ b/doc/cookbook/textures.xml @@ -533,7 +533,7 @@ clutter_actor_get_size (image, &image_width, &image_height); texture = clutter_texture_get_cogl_texture (CLUTTER_TEXTURE (image)); /* Create a new Cogl texture from the handle above. That new texture is a - * rectangular region from image, more precisely the north ouest corner + * rectangular region from image, more precisely the northwest corner * of the image */ sub_texture = cogl_texture_new_from_sub_texture (texture, 0, 0,