naming changes
path -> filepath (for rna and operators, as agreed on with elubie) path -> data_path (for windowmanager context functions, this was alredy used in many places)
This commit is contained in:
@@ -215,19 +215,19 @@ static void text_keymap(struct wmKeyConfig *keyconf)
|
||||
#endif
|
||||
|
||||
kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", WHEELUPMOUSE, KM_PRESS, KM_CTRL, 0);
|
||||
RNA_string_set(kmi->ptr, "path", "space_data.font_size");
|
||||
RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
|
||||
RNA_boolean_set(kmi->ptr, "reverse", 0);
|
||||
|
||||
kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", WHEELDOWNMOUSE, KM_PRESS, KM_CTRL, 0);
|
||||
RNA_string_set(kmi->ptr, "path", "space_data.font_size");
|
||||
RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
|
||||
RNA_boolean_set(kmi->ptr, "reverse", 1);
|
||||
|
||||
kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", PADPLUSKEY, KM_PRESS, KM_CTRL, 0);
|
||||
RNA_string_set(kmi->ptr, "path", "space_data.font_size");
|
||||
RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
|
||||
RNA_boolean_set(kmi->ptr, "reverse", 0);
|
||||
|
||||
kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", PADMINUS, KM_PRESS, KM_CTRL, 0);
|
||||
RNA_string_set(kmi->ptr, "path", "space_data.font_size");
|
||||
RNA_string_set(kmi->ptr, "data_path", "space_data.font_size");
|
||||
RNA_boolean_set(kmi->ptr, "reverse", 1);
|
||||
|
||||
WM_keymap_add_item(keymap, "TEXT_OT_new", NKEY, KM_PRESS, KM_ALT, 0);
|
||||
@@ -389,7 +389,7 @@ static int text_drop_poll(bContext *C, wmDrag *drag, wmEvent *event)
|
||||
static void text_drop_copy(wmDrag *drag, wmDropBox *drop)
|
||||
{
|
||||
/* copy drag path to properties */
|
||||
RNA_string_set(drop->ptr, "path", drag->path);
|
||||
RNA_string_set(drop->ptr, "filepath", drag->path);
|
||||
}
|
||||
|
||||
/* this region dropbox definition */
|
||||
|
||||
Reference in New Issue
Block a user