Просмотр исходного кода

tools: rename 'Close' to 'Close Project'

Daniele Bartolini 1 год назад
Родитель
Сommit
655b43669d
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      tools/level_editor/level_editor.vala
  2. 2 2
      tools/level_editor/resources/gtk/menus.ui

+ 2 - 2
tools/level_editor/level_editor.vala

@@ -333,7 +333,7 @@ public class LevelEditorApplication : Gtk.Application
 		{ "import-null",   on_import,        null, null },
 		{ "preferences",   on_preferences,   null, null },
 		{ "deploy",        on_deploy,        null, null },
-		{ "close",         on_close,         null, null },
+		{ "close-project", on_close_project, null, null },
 		{ "quit",          on_quit,          null, null },
 		{ "open-resource", on_open_resource, "s",  null },
 		{ "copy-path",     on_copy_path,     "s",  null }
@@ -2119,7 +2119,7 @@ public class LevelEditorApplication : Gtk.Application
 		return rt;
 	}
 
-	private void on_close(GLib.SimpleAction action, GLib.Variant? param)
+	private void on_close_project(GLib.SimpleAction action, GLib.Variant? param)
 	{
 		int rt = ResponseType.YES;
 

+ 2 - 2
tools/level_editor/resources/gtk/menus.ui

@@ -57,8 +57,8 @@
       </section>
       <section>
         <item>
-          <attribute name="label" translatable="yes">Close</attribute>
-          <attribute name="action">app.close</attribute>
+          <attribute name="label" translatable="yes">Close Project</attribute>
+          <attribute name="action">app.close-project</attribute>
           <attribute name="accel">&lt;Primary&gt;W</attribute>
         </item>
         <item>