Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_text_api.c
| Show All 28 Lines | |||||
| #ifdef RNA_RUNTIME | #ifdef RNA_RUNTIME | ||||
| # include "WM_api.h" | # include "WM_api.h" | ||||
| # include "WM_types.h" | # include "WM_types.h" | ||||
| static void rna_Text_clear(Text *text) | static void rna_Text_clear(Text *text) | ||||
| { | { | ||||
| BKE_text_clear(text, NULL); | BKE_text_clear(text); | ||||
| WM_main_add_notifier(NC_TEXT | NA_EDITED, text); | WM_main_add_notifier(NC_TEXT | NA_EDITED, text); | ||||
| } | } | ||||
| static void rna_Text_write(Text *text, const char *str) | static void rna_Text_write(Text *text, const char *str) | ||||
| { | { | ||||
| BKE_text_write(text, NULL, str); | BKE_text_write(text, str); | ||||
| WM_main_add_notifier(NC_TEXT | NA_EDITED, text); | WM_main_add_notifier(NC_TEXT | NA_EDITED, text); | ||||
| } | } | ||||
| #else | #else | ||||
| void RNA_api_text(StructRNA *srna) | void RNA_api_text(StructRNA *srna) | ||||
| { | { | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| Show All 13 Lines | |||||