use TRUE/FALSE for boolean keymaps, no functional changes
authorCampbell Barton <ideasman42@gmail.com>
Mon, 16 Jan 2012 09:51:04 +0000 (09:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 16 Jan 2012 09:51:04 +0000 (09:51 +0000)
source/blender/editors/object/object_ops.c
source/blender/editors/screen/screen_ops.c
source/blender/editors/space_console/space_console.c
source/blender/editors/space_file/space_file.c
source/blender/editors/space_image/space_image.c
source/blender/editors/space_sequencer/sequencer_ops.c
source/blender/editors/space_text/space_text.c
source/blender/editors/space_view3d/view3d_ops.c
source/blender/editors/transform/transform_ops.c
source/blender/windowmanager/intern/wm_operators.c

index 9119d7de876dea1b19f572be6b0fd15bb9d90e79..521865280eaa884c88d77d024ff890c397fdfd21 100644 (file)
@@ -269,19 +269,19 @@ void ED_keymap_object(wmKeyConfig *keyconf)
        /* Note: this keymap works disregarding mode */
        kmi = WM_keymap_add_item(keymap, "OBJECT_OT_mode_set", TABKEY, KM_PRESS, 0, 0);
        RNA_enum_set(kmi->ptr, "mode", OB_MODE_EDIT);
-       RNA_boolean_set(kmi->ptr, "toggle", 1);
+       RNA_boolean_set(kmi->ptr, "toggle", TRUE);
 
        kmi = WM_keymap_add_item(keymap, "OBJECT_OT_mode_set", TABKEY, KM_PRESS, KM_CTRL, 0);
        RNA_enum_set(kmi->ptr, "mode", OB_MODE_POSE);
-       RNA_boolean_set(kmi->ptr, "toggle", 1);
+       RNA_boolean_set(kmi->ptr, "toggle", TRUE);
 
        kmi = WM_keymap_add_item(keymap, "OBJECT_OT_mode_set", VKEY, KM_PRESS, 0, 0);
        RNA_enum_set(kmi->ptr, "mode", OB_MODE_VERTEX_PAINT);
-       RNA_boolean_set(kmi->ptr, "toggle", 1);
+       RNA_boolean_set(kmi->ptr, "toggle", TRUE);
        
        kmi = WM_keymap_add_item(keymap, "OBJECT_OT_mode_set", TABKEY, KM_PRESS, KM_CTRL, 0);
        RNA_enum_set(kmi->ptr, "mode", OB_MODE_WEIGHT_PAINT);
-       RNA_boolean_set(kmi->ptr, "toggle", 1);
+       RNA_boolean_set(kmi->ptr, "toggle", TRUE);
        
        WM_keymap_add_item(keymap, "OBJECT_OT_origin_set", CKEY, KM_PRESS, KM_ALT|KM_SHIFT|KM_CTRL, 0);
 
@@ -348,7 +348,7 @@ void ED_keymap_object(wmKeyConfig *keyconf)
        /* conflicts, removing */
 #if 0
        kmi = WM_keymap_add_item(keymap, "OBJECT_OT_hide_render_set", HKEY, KM_PRESS, KM_SHIFT|KM_CTRL, 0)
-       RNA_boolean_set(kmi->ptr, "unselected", 1);
+       RNA_boolean_set(kmi->ptr, "unselected", TRUE);
 #endif
 
        WM_keymap_add_item(keymap, "OBJECT_OT_move_to_layer", MKEY, KM_PRESS, 0, 0);
index 2632c239625647de974c1b10e22de1c9346e4562..30cb9e8e53f220ebc3dd36fe7e34c8d4baad7c49 100644 (file)
@@ -3606,11 +3606,11 @@ void ED_keymap_screen(wmKeyConfig *keyconf)
 #if 0 // XXX: disabled for restoring later... bad implementation
        keymap= WM_keymap_find(keyconf, "Frames", 0, 0);
        kmi = WM_keymap_add_item(keymap, "SCREEN_OT_animation_play", RIGHTARROWKEY, KM_PRESS, KM_ALT, 0);
-               RNA_boolean_set(kmi->ptr, "cycle_speed", 1);
+               RNA_boolean_set(kmi->ptr, "cycle_speed", TRUE);
        
        kmi = WM_keymap_add_item(keymap, "SCREEN_OT_animation_play", LEFTARROWKEY, KM_PRESS, KM_ALT, 0);
-               RNA_boolean_set(kmi->ptr, "reverse", 1);
-               RNA_boolean_set(kmi->ptr, "cycle_speed", 1);
+               RNA_boolean_set(kmi->ptr, "reverse", TRUE);
+               RNA_boolean_set(kmi->ptr, "cycle_speed", TRUE);
        
        WM_keymap_add_item(keymap, "SCREEN_OT_animation_play", DOWNARROWKEY, KM_PRESS, KM_ALT, 0);
 #endif
index c713317aa7e45bce37725263588dba9513a6a270..1a2541cbc901b61efc2f6e866d7444de44ba6428 100644 (file)
@@ -276,19 +276,19 @@ static void console_keymap(struct wmKeyConfig *keyconf)
        
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", WHEELUPMOUSE, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
-       RNA_boolean_set(kmi->ptr, "reverse", 0);
+       RNA_boolean_set(kmi->ptr, "reverse", FALSE);
        
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", WHEELDOWNMOUSE, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
-       RNA_boolean_set(kmi->ptr, "reverse", 1);
+       RNA_boolean_set(kmi->ptr, "reverse", TRUE);
 
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", PADPLUSKEY, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
-       RNA_boolean_set(kmi->ptr, "reverse", 0);
+       RNA_boolean_set(kmi->ptr, "reverse", FALSE);
        
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", PADMINUS, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
-       RNA_boolean_set(kmi->ptr, "reverse", 1);
+       RNA_boolean_set(kmi->ptr, "reverse", TRUE);
 
        RNA_enum_set(WM_keymap_add_item(keymap, "CONSOLE_OT_move", LEFTARROWKEY, KM_PRESS, 0, 0)->ptr, "type", PREV_CHAR);
        RNA_enum_set(WM_keymap_add_item(keymap, "CONSOLE_OT_move", RIGHTARROWKEY, KM_PRESS, 0, 0)->ptr, "type", NEXT_CHAR);
index 7bc71e333ea25646cfb2599d7110f6614a2776bd..02c9728348e294ea11295a1e6e5e6321986b666f 100644 (file)
@@ -410,13 +410,13 @@ static void file_keymap(struct wmKeyConfig *keyconf)
        /* keys for main area */
        keymap= WM_keymap_find(keyconf, "File Browser Main", SPACE_FILE, 0);
        kmi= WM_keymap_add_item(keymap, "FILE_OT_execute", LEFTMOUSE, KM_DBL_CLICK, 0, 0);
-       RNA_boolean_set(kmi->ptr, "need_active", 1);
+       RNA_boolean_set(kmi->ptr, "need_active", TRUE);
        WM_keymap_add_item(keymap, "FILE_OT_select", LEFTMOUSE, KM_CLICK, 0, 0);
        kmi = WM_keymap_add_item(keymap, "FILE_OT_select", LEFTMOUSE, KM_CLICK, KM_SHIFT, 0);
-       RNA_boolean_set(kmi->ptr, "extend", 1);
+       RNA_boolean_set(kmi->ptr, "extend", TRUE);
        kmi = WM_keymap_add_item(keymap, "FILE_OT_select", LEFTMOUSE, KM_CLICK, KM_ALT, 0);
-       RNA_boolean_set(kmi->ptr, "extend", 1);
-       RNA_boolean_set(kmi->ptr, "fill", 1);
+       RNA_boolean_set(kmi->ptr, "extend", TRUE);
+       RNA_boolean_set(kmi->ptr, "fill", TRUE);
        WM_keymap_add_item(keymap, "FILE_OT_select_all_toggle", AKEY, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "FILE_OT_refresh", PADPERIOD, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "FILE_OT_select_border", BKEY, KM_PRESS, 0, 0);
index 4421ad8e4f9f18ad99e62676112f21558a2107e3..66a3838955553aca77f850c573ed049f7f59d902 100644 (file)
@@ -543,7 +543,7 @@ static void image_keymap(struct wmKeyConfig *keyconf)
        /* toggle editmode is handy to have while UV unwrapping */
        kmi= WM_keymap_add_item(keymap, "OBJECT_OT_mode_set", TABKEY, KM_PRESS, 0, 0);
        RNA_enum_set(kmi->ptr, "mode", OB_MODE_EDIT);
-       RNA_boolean_set(kmi->ptr, "toggle", 1);
+       RNA_boolean_set(kmi->ptr, "toggle", TRUE);
 }
 
 /* dropboxes */
index a6d8b6c2612d3b609a89e8cd5c71875122b5f80b..986aab8fa61e8374c9b508d8faf3d9ec67cd7eec 100644 (file)
@@ -216,21 +216,21 @@ void sequencer_keymap(wmKeyConfig *keyconf)
        RNA_boolean_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_ALT, 0)->ptr, "linked_right", 1);
        
        kmi= WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_CTRL|KM_ALT, 0);
-       RNA_boolean_set(kmi->ptr, "linked_left", 1);
-       RNA_boolean_set(kmi->ptr, "linked_right", 1);
+       RNA_boolean_set(kmi->ptr, "linked_left", TRUE);
+       RNA_boolean_set(kmi->ptr, "linked_right", TRUE);
 
        kmi= WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT|KM_CTRL|KM_ALT, 0);
-       RNA_boolean_set(kmi->ptr, "extend", 1);
-       RNA_boolean_set(kmi->ptr, "linked_left", 1);
-       RNA_boolean_set(kmi->ptr, "linked_right", 1);
+       RNA_boolean_set(kmi->ptr, "extend", TRUE);
+       RNA_boolean_set(kmi->ptr, "linked_left", TRUE);
+       RNA_boolean_set(kmi->ptr, "linked_right", TRUE);
 
        kmi= WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT|KM_CTRL, 0);
-       RNA_boolean_set(kmi->ptr, "extend", 1);
-       RNA_boolean_set(kmi->ptr, "linked_left", 1);
+       RNA_boolean_set(kmi->ptr, "extend", TRUE);
+       RNA_boolean_set(kmi->ptr, "linked_left", TRUE);
 
        kmi= WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT|KM_ALT, 0);
-       RNA_boolean_set(kmi->ptr, "extend", 1);
-       RNA_boolean_set(kmi->ptr, "linked_right", 1);
+       RNA_boolean_set(kmi->ptr, "extend", TRUE);
+       RNA_boolean_set(kmi->ptr, "linked_right", TRUE);
         */
 
        /* 2.5 method, Alt and use selected handle */
index 7e6af8ea789aae57963fae24afa58ca4227dd0eb..23d123856258476a4fad9dc70c62b1e4dc85dbdb 100644 (file)
@@ -268,19 +268,19 @@ static void text_keymap(struct wmKeyConfig *keyconf)
        
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", WHEELUPMOUSE, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
-       RNA_boolean_set(kmi->ptr, "reverse", 0);
+       RNA_boolean_set(kmi->ptr, "reverse", FALSE);
        
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", WHEELDOWNMOUSE, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
-       RNA_boolean_set(kmi->ptr, "reverse", 1);
+       RNA_boolean_set(kmi->ptr, "reverse", TRUE);
 
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", PADPLUSKEY, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
-       RNA_boolean_set(kmi->ptr, "reverse", 0);
+       RNA_boolean_set(kmi->ptr, "reverse", FALSE);
        
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", PADMINUS, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
-       RNA_boolean_set(kmi->ptr, "reverse", 1);
+       RNA_boolean_set(kmi->ptr, "reverse", TRUE);
        
        WM_keymap_add_item(keymap, "TEXT_OT_new", NKEY, KM_PRESS, KM_CTRL, 0);
        WM_keymap_add_item(keymap, "TEXT_OT_open", OKEY, KM_PRESS, KM_ALT, 0);
index 4594544b4f85639d28582b883550d7886a7bc96c..22470fe930dd8c3f236f9cf20532d4bfa8b1bb14 100644 (file)
@@ -121,7 +121,7 @@ void view3d_keymap(wmKeyConfig *keyconf)
        keymap= WM_keymap_find(keyconf, "3D View", SPACE_VIEW3D, 0);
        
        kmi = WM_keymap_verify_item(keymap, "VIEW3D_OT_manipulator", LEFTMOUSE, KM_PRESS, KM_ANY, 0);
-       RNA_boolean_set(kmi->ptr, "release_confirm", 1);
+       RNA_boolean_set(kmi->ptr, "release_confirm", TRUE);
        /*
         * Doesn't work with KM_SHIFT, have to use KM_ANY and filter in invoke
         * */
index b7aba109cdd9446ad6b9f53939278f026ea59102..1843768bcd7c508985361f2de51c3378ac89b3c6 100644 (file)
@@ -843,7 +843,7 @@ void transform_operatortypes(void)
 
 void transform_keymap_for_space(wmKeyConfig *keyconf, wmKeyMap *keymap, int spaceid)
 {
-       wmKeyMapItem *km;
+       wmKeyMapItem *kmi;
        wmKeyMap *modalmap;
        
        /* transform.c, only adds modal map once, checks if it's there */
@@ -879,71 +879,71 @@ void transform_keymap_for_space(wmKeyConfig *keyconf, wmKeyMap *keymap, int spac
 
                        WM_keymap_add_item(keymap, "TRANSFORM_OT_select_orientation", SPACEKEY, KM_PRESS, KM_ALT, 0);
 
-                       km = WM_keymap_add_item(keymap, "TRANSFORM_OT_create_orientation", SPACEKEY, KM_PRESS, KM_CTRL|KM_ALT, 0);
-                       RNA_boolean_set(km->ptr, "use", 1);
+                       kmi = WM_keymap_add_item(keymap, "TRANSFORM_OT_create_orientation", SPACEKEY, KM_PRESS, KM_CTRL|KM_ALT, 0);
+                       RNA_boolean_set(kmi->ptr, "use", TRUE);
 
                        WM_keymap_add_item(keymap, OP_MIRROR, MKEY, KM_PRESS, KM_CTRL, 0);
 
-                       km = WM_keymap_add_item(keymap, "WM_OT_context_toggle", TABKEY, KM_PRESS, KM_SHIFT, 0);
-                       RNA_string_set(km->ptr, "data_path", "tool_settings.use_snap");
+                       kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", TABKEY, KM_PRESS, KM_SHIFT, 0);
+                       RNA_string_set(kmi->ptr, "data_path", "tool_settings.use_snap");
 
                        WM_keymap_add_item(keymap, "TRANSFORM_OT_snap_type", TABKEY, KM_PRESS, KM_SHIFT|KM_CTRL, 0);
 
-                       km = WM_keymap_add_item(keymap, OP_TRANSLATION, TKEY, KM_PRESS, KM_SHIFT, 0);
-                       RNA_boolean_set(km->ptr, "texture_space", 1);
+                       kmi = WM_keymap_add_item(keymap, OP_TRANSLATION, TKEY, KM_PRESS, KM_SHIFT, 0);
+                       RNA_boolean_set(kmi->ptr, "texture_space", TRUE);
 
-                       km = WM_keymap_add_item(keymap, OP_RESIZE, TKEY, KM_PRESS, KM_SHIFT|KM_ALT, 0);
-                       RNA_boolean_set(km->ptr, "texture_space", 1);
+                       kmi = WM_keymap_add_item(keymap, OP_RESIZE, TKEY, KM_PRESS, KM_SHIFT|KM_ALT, 0);
+                       RNA_boolean_set(kmi->ptr, "texture_space", TRUE);
 
                        break;
                case SPACE_ACTION:
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", GKEY, KM_PRESS, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_TRANSLATE);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", GKEY, KM_PRESS, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_TRANSLATE);
                        
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EVT_TWEAK_S, KM_ANY, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_TRANSLATE);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EVT_TWEAK_S, KM_ANY, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_TRANSLATE);
                        
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EKEY, KM_PRESS, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_EXTEND);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EKEY, KM_PRESS, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_EXTEND);
                        
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", SKEY, KM_PRESS, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_SCALE);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", SKEY, KM_PRESS, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_SCALE);
                        
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", TKEY, KM_PRESS, KM_SHIFT, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_SLIDE);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", TKEY, KM_PRESS, KM_SHIFT, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_SLIDE);
                        break;
                case SPACE_IPO:
                        WM_keymap_add_item(keymap, OP_TRANSLATION, GKEY, KM_PRESS, 0, 0);
                        
                        WM_keymap_add_item(keymap, OP_TRANSLATION, EVT_TWEAK_S, KM_ANY, 0, 0);
                        
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EKEY, KM_PRESS, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_EXTEND);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EKEY, KM_PRESS, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_EXTEND);
                        
                        WM_keymap_add_item(keymap, OP_ROTATION, RKEY, KM_PRESS, 0, 0);
                        
                        WM_keymap_add_item(keymap, OP_RESIZE, SKEY, KM_PRESS, 0, 0);
                        break;
                case SPACE_NLA:
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", GKEY, KM_PRESS, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TRANSLATION);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", GKEY, KM_PRESS, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TRANSLATION);
                        
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EVT_TWEAK_S, KM_ANY, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TRANSLATION);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EVT_TWEAK_S, KM_ANY, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TRANSLATION);
                        
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EKEY, KM_PRESS, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_EXTEND);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EKEY, KM_PRESS, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_EXTEND);
                        
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", SKEY, KM_PRESS, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_SCALE);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", SKEY, KM_PRESS, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_SCALE);
                        break;
                case SPACE_NODE:
                        WM_keymap_add_item(keymap, OP_TRANSLATION, GKEY, KM_PRESS, 0, 0);
 
-                       km= WM_keymap_add_item(keymap, OP_TRANSLATION, EVT_TWEAK_A, KM_ANY, 0, 0);
-                       RNA_boolean_set(km->ptr, "release_confirm", 1);
-                       km= WM_keymap_add_item(keymap, OP_TRANSLATION, EVT_TWEAK_S, KM_ANY, 0, 0);
-                       RNA_boolean_set(km->ptr, "release_confirm", 1);
+                       kmi= WM_keymap_add_item(keymap, OP_TRANSLATION, EVT_TWEAK_A, KM_ANY, 0, 0);
+                       RNA_boolean_set(kmi->ptr, "release_confirm", TRUE);
+                       kmi= WM_keymap_add_item(keymap, OP_TRANSLATION, EVT_TWEAK_S, KM_ANY, 0, 0);
+                       RNA_boolean_set(kmi->ptr, "release_confirm", TRUE);
 
                        WM_keymap_add_item(keymap, OP_ROTATION, RKEY, KM_PRESS, 0, 0);
 
@@ -954,8 +954,8 @@ void transform_keymap_for_space(wmKeyConfig *keyconf, wmKeyMap *keymap, int spac
 
                        WM_keymap_add_item(keymap, OP_SEQ_SLIDE, EVT_TWEAK_S, KM_ANY, 0, 0);
 
-                       km= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EKEY, KM_PRESS, 0, 0);
-                       RNA_enum_set(km->ptr, "mode", TFM_TIME_EXTEND);
+                       kmi= WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", EKEY, KM_PRESS, 0, 0);
+                       RNA_enum_set(kmi->ptr, "mode", TFM_TIME_EXTEND);
                        break;
                case SPACE_IMAGE:
                        WM_keymap_add_item(keymap, OP_TRANSLATION, GKEY, KM_PRESS, 0, 0);
@@ -970,8 +970,8 @@ void transform_keymap_for_space(wmKeyConfig *keyconf, wmKeyMap *keymap, int spac
 
                        WM_keymap_add_item(keymap, "TRANSFORM_OT_mirror", MKEY, KM_PRESS, KM_CTRL, 0);
 
-                       km = WM_keymap_add_item(keymap, "WM_OT_context_toggle", TABKEY, KM_PRESS, KM_SHIFT, 0);
-                       RNA_string_set(km->ptr, "data_path", "tool_settings.use_snap");
+                       kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", TABKEY, KM_PRESS, KM_SHIFT, 0);
+                       RNA_string_set(kmi->ptr, "data_path", "tool_settings.use_snap");
                        break;
                case SPACE_CLIP:
                        WM_keymap_add_item(keymap, OP_TRANSLATION, GKEY, KM_PRESS, 0, 0);
index edd822bd2da0ed59ae0b7dfe067b56906db8d21d..ec4e035068a8bea9ea6f47e0443fc9435339e2c0 100644 (file)
@@ -3882,7 +3882,7 @@ void wm_window_keymap(wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "WM_OT_save_as_mainfile", SKEY, KM_PRESS, KM_SHIFT|KM_CTRL, 0);
        WM_keymap_add_item(keymap, "WM_OT_save_as_mainfile", F2KEY, KM_PRESS, 0, 0);
        kmi= WM_keymap_add_item(keymap, "WM_OT_save_as_mainfile", SKEY, KM_PRESS, KM_ALT|KM_CTRL, 0);
-       RNA_boolean_set(kmi->ptr, "copy", 1);
+       RNA_boolean_set(kmi->ptr, "copy", TRUE);
 
        WM_keymap_verify_item(keymap, "WM_OT_window_fullscreen_toggle", F11KEY, KM_PRESS, KM_ALT, 0);
        WM_keymap_add_item(keymap, "WM_OT_quit_blender", QKEY, KM_PRESS, KM_CTRL, 0);