[Bf-blender-cvs] [a03ebe9431b] master: UI: Adjust names for Find/Replace Set Selection

Aaron Carlisle noreply at git.blender.org
Thu Jun 11 20:15:47 CEST 2020


Commit: a03ebe9431b582c8dba4c7295d6451b02c3889b3
Author: Aaron Carlisle
Date:   Thu Jun 11 14:04:50 2020 -0400
Branches: master
https://developer.blender.org/rBa03ebe9431b582c8dba4c7295d6451b02c3889b3

UI: Adjust names for Find/Replace Set Selection

This is really doing two operation so using the ampersand makes more 
sense.
Also selection sounds better than selected.
This also adjusts the name in the text Edit menu which was an issue 
raised in T68738

===================================================================

M	release/scripts/startup/bl_ui/space_text.py
M	source/blender/editors/space_text/text_ops.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index f6f22ad464f..553d79fb349 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -400,7 +400,7 @@ class TEXT_MT_edit(Menu):
         layout.separator()
 
         layout.operator("text.start_find", text="Find & Replace...")
-        layout.operator("text.find_set_selected", text="Find Next")
+        layout.operator("text.find_set_selected")
         layout.operator("text.jump", text="Jump To...")
 
         layout.separator()
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c
index fa378954a30..e50b25de412 100644
--- a/source/blender/editors/space_text/text_ops.c
+++ b/source/blender/editors/space_text/text_ops.c
@@ -3667,7 +3667,7 @@ static int text_find_set_selected_exec(bContext *C, wmOperator *op)
 void TEXT_OT_find_set_selected(wmOperatorType *ot)
 {
   /* identifiers */
-  ot->name = "Find Set Selected";
+  ot->name = "Find & Set Selection";
   ot->idname = "TEXT_OT_find_set_selected";
   ot->description = "Find specified text and set as selected";
 
@@ -3698,7 +3698,7 @@ static int text_replace_set_selected_exec(bContext *C, wmOperator *UNUSED(op))
 void TEXT_OT_replace_set_selected(wmOperatorType *ot)
 {
   /* identifiers */
-  ot->name = "Replace Set Selected";
+  ot->name = "Replace & Set Selection";
   ot->idname = "TEXT_OT_replace_set_selected";
   ot->description = "Replace text with specified text and set as selected";



More information about the Bf-blender-cvs mailing list