diff --git a/doc/cookbook/events.xml b/doc/cookbook/events.xml index 39df6ce7e..cb15421ed 100644 --- a/doc/cookbook/events.xml +++ b/doc/cookbook/events.xml @@ -114,7 +114,7 @@ _key_press_cb (ClutterActor *actor, gboolean shift_pressed = (state & CLUTTER_SHIFT_MASK ? TRUE : FALSE); gboolean ctrl_pressed = (state & CLUTTER_CONTROL_MASK ? TRUE : FALSE); - if (CLUTTER_Up == keyval) + if (CLUTTER_KEY_Up == keyval) { if (shift_pressed & ctrl_pressed) g_debug ("Up and shift and control pressed"); @@ -136,11 +136,11 @@ _key_press_cb (ClutterActor *actor, Clutter provides a range of key value definitions - (like CLUTTER_Up, used above). These are + (like CLUTTER_KEY_Up, used above). These are generated from the list in the X.Org source code - (replace "XK" with "CLUTTER" in the definitions there to get the - CLUTTER equivalents; alternatively, look at the + (replace "XK" with "CLUTTER_KEY" in the definitions there to get the + Clutter equivalents; alternatively, look at the clutter-keysyms.h header file for the list). @@ -188,11 +188,11 @@ binding_pool = clutter_binding_pool_get_for_class (stage_class); clutter_binding_pool_install_action (binding_pool, - "move-up", /* identifier */ - CLUTTER_Up, /* up arrow pressed */ - 0, /* no modifiers pressed */ + "move-up", /* identifier */ + CLUTTER_KEY_Up, /* up arrow pressed */ + 0, /* no modifiers pressed */ G_CALLBACK (_move_up), - NULL, /* no user data passed */ + NULL, /* no user data passed */ NULL); @@ -206,7 +206,7 @@ clutter_binding_pool_install_action (binding_pool, clutter_binding_pool_install_action (binding_pool, "move-up-shift-control", - CLUTTER_Up, + CLUTTER_KEY_Up, CLUTTER_SHIFT_MASK + CLUTTER_CONTROL_MASK, G_CALLBACK (_move_up_shift_control), NULL,