Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevgeny Makarov <jenkm>2020-02-03 09:55:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-03 09:55:13 +0300
commit831bb6bc772ec69a3f6b4df46b8acf0933506fe7 (patch)
tree84266affa38267dad8d6fb90349b699bd9d17183 /source/blender/editors/space_text/text_header.c
parentd243a0b03a9ff80385a77342a55e2d99cb2eec98 (diff)
Text: make "Text" tab active when searching
Diffstat (limited to 'source/blender/editors/space_text/text_header.c')
-rw-r--r--source/blender/editors/space_text/text_header.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_text/text_header.c b/source/blender/editors/space_text/text_header.c
index e2d2bb5ed64..846220b95ba 100644
--- a/source/blender/editors/space_text/text_header.c
+++ b/source/blender/editors/space_text/text_header.c
@@ -34,6 +34,8 @@
#include "WM_types.h"
+#include "UI_interface.h"
+
#include "text_intern.h"
/* ************************ header area region *********************** */
@@ -84,6 +86,8 @@ static int text_text_search_exec(bContext *C, wmOperator *UNUSED(op))
ED_region_toggle_hidden(C, ar);
}
+ UI_panel_category_active_set(ar, "Text");
+
/* cannot send a button activate yet for case when region wasn't visible yet */
/* flag gets checked and cleared in main draw callback */
st->flags |= ST_FIND_ACTIVATE;