[Bf-blender-cvs] [708eb550181] master: UI: make text editor Text menu consistent with menus for .blend and images.

Brecht Van Lommel noreply at git.blender.org
Mon Mar 4 16:11:09 CET 2019


Commit: 708eb5501815e1dadb168d87573cde3d97192e83
Author: Brecht Van Lommel
Date:   Mon Mar 4 15:24:23 2019 +0100
Branches: master
https://developer.blender.org/rB708eb5501815e1dadb168d87573cde3d97192e83

UI: make text editor Text menu consistent with menus for .blend and images.

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

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 e7ead3f8196..6726a5d319d 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -200,20 +200,21 @@ class TEXT_MT_text(Menu):
         st = context.space_data
         text = st.text
 
-        layout.operator("text.new")
-        layout.operator("text.open")
+        layout.operator("text.new", text="New")
+        layout.operator("text.open", text="Open...", icon='FILE_FOLDER')
 
         if text:
+            layout.separator()
             layout.operator("text.reload")
 
-            layout.column()
-            layout.operator("text.save")
-            layout.operator("text.save_as")
+            layout.separator()
+            layout.operator("text.save", icon='FILE_TICK')
+            layout.operator("text.save_as", text="Save As...")
 
             if text.filepath:
                 layout.operator("text.make_internal")
 
-            layout.column()
+            layout.separator()
             layout.operator("text.run_script")
 
 
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c
index 0cc0037567a..c2f3be0d881 100644
--- a/source/blender/editors/space_text/text_ops.c
+++ b/source/blender/editors/space_text/text_ops.c
@@ -186,7 +186,7 @@ static int text_new_exec(bContext *C, wmOperator *UNUSED(op))
 void TEXT_OT_new(wmOperatorType *ot)
 {
 	/* identifiers */
-	ot->name = "Create Text Block";
+	ot->name = "New Text";
 	ot->idname = "TEXT_OT_new";
 	ot->description = "Create a new text data-block";
 
@@ -280,7 +280,7 @@ static int text_open_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(e
 void TEXT_OT_open(wmOperatorType *ot)
 {
 	/* identifiers */
-	ot->name = "Open Text Block";
+	ot->name = "Open Text";
 	ot->idname = "TEXT_OT_open";
 	ot->description = "Open a new text data-block";



More information about the Bf-blender-cvs mailing list