diff options
Diffstat (limited to 'source/blender/editors/space_text/space_text.c')
-rw-r--r-- | source/blender/editors/space_text/space_text.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/editors/space_text/space_text.c b/source/blender/editors/space_text/space_text.c index 300f63761c0..bb71a9b11be 100644 --- a/source/blender/editors/space_text/space_text.c +++ b/source/blender/editors/space_text/space_text.c @@ -117,7 +117,7 @@ static SpaceLink *text_duplicate(SpaceLink *sl) /* clear or remove stuff from old */ - stextn->runtime.drawcache = NULL; /* space need it's own cache */ + stextn->runtime.drawcache = NULL; /* space need its own cache */ return (SpaceLink *)stextn; } @@ -248,22 +248,24 @@ static void text_keymap(struct wmKeyConfig *keyconf) const char *text_context_dir[] = {"edit_text", NULL}; -static int text_context(const bContext *C, const char *member, bContextDataResult *result) +static int /*eContextResult*/ text_context(const bContext *C, + const char *member, + bContextDataResult *result) { SpaceText *st = CTX_wm_space_text(C); if (CTX_data_dir(member)) { CTX_data_dir_set(result, text_context_dir); - return 1; + return CTX_RESULT_OK; } if (CTX_data_equals(member, "edit_text")) { if (st->text != NULL) { CTX_data_id_pointer_set(result, &st->text->id); } - return 1; + return CTX_RESULT_OK; } - return 0; + return CTX_RESULT_MEMBER_NOT_FOUND; } /********************* main region ********************/ |