From 6995fc908a06d4a1ad5a2bd6ab33dbdfbf1f573a Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Thu, 31 May 2012 11:27:17 +0100 Subject: Replace deprecated GDK key symbols in mesh-context (bzr r11443) --- src/mesh-context.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/mesh-context.cpp b/src/mesh-context.cpp index 3a7b12969..f5ffebe7b 100644 --- a/src/mesh-context.cpp +++ b/src/mesh-context.cpp @@ -881,40 +881,40 @@ sp_mesh_context_root_handler(SPEventContext *event_context, GdkEvent *event) // Mesh Operations -------------------------------------------- - case GDK_b: // Toggle mesh side between lineto and curveto. - case GDK_B: + case GDK_KEY_b: // Toggle mesh side between lineto and curveto. + case GDK_KEY_B: if (MOD__ALT && drag->isNonEmpty() && drag->hasSelection()) { sp_mesh_context_corner_operation ( rc, MG_CORNER_SIDE_TOGGLE ); ret = TRUE; } break; - case GDK_c: // Convert mesh side from generic Bezier to Bezier approximating arc, - case GDK_C: // preserving handle direction. + case GDK_KEY_c: // Convert mesh side from generic Bezier to Bezier approximating arc, + case GDK_KEY_C: // preserving handle direction. if (MOD__ALT && drag->isNonEmpty() && drag->hasSelection()) { sp_mesh_context_corner_operation ( rc, MG_CORNER_SIDE_ARC ); ret = TRUE; } break; - case GDK_g: // Toggle mesh tensor points on/off - case GDK_G: + case GDK_KEY_g: // Toggle mesh tensor points on/off + case GDK_KEY_G: if (MOD__ALT && drag->isNonEmpty() && drag->hasSelection()) { sp_mesh_context_corner_operation ( rc, MG_CORNER_TENSOR_TOGGLE ); ret = TRUE; } break; - case GDK_j: // Smooth corner color - case GDK_J: + case GDK_KEY_j: // Smooth corner color + case GDK_KEY_J: if (MOD__ALT && drag->isNonEmpty() && drag->hasSelection()) { sp_mesh_context_corner_operation ( rc, MG_CORNER_COLOR_SMOOTH ); ret = TRUE; } break; - case GDK_k: // Pick corner color - case GDK_K: + case GDK_KEY_k: // Pick corner color + case GDK_KEY_K: if (MOD__ALT && drag->isNonEmpty() && drag->hasSelection()) { sp_mesh_context_corner_operation ( rc, MG_CORNER_COLOR_PICK ); ret = TRUE; -- cgit v1.2.3