Changed src/Builder4/MainWindow.bjssrc/Builder4/MainWindow.vala
authorAlan <alan@roojs.com>
Wed, 28 Sep 2022 09:32:18 +0000 (17:32 +0800)
committerAlan <alan@roojs.com>
Wed, 28 Sep 2022 09:32:18 +0000 (17:32 +0800)
src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 052ac26..b965ba3 100644 (file)
           " \t\t}",
           "",
           " \t\tGLib.debug(\"add menuitem %s\", w.windowstate.file.path);",
-          "\t \tvar m = new Gtk.MenuItem.with_label(w.windowstate.file.path);",
+          " \t\t",
+          " \t\t",
+          " \t\t",
+          "\t \tvar m = new Gtk.MenuItem.with_label(",
+          "\t\t \tfile.project.name + \" : \" + file.getTitle()",
+          "\t \t);",
+          "\t \t",
+          "\t \tw.windowstate.file.path);",
           "\t \tm.activate.connect(() => {",
           "\t \t\t BuilderApplication.windows.get(wid).el.present();",
           "\t \t});",
index edf96b4..b504a59 100644 (file)
@@ -259,7 +259,14 @@ public class Xcls_MainWindow : Object
                        }
         
                        GLib.debug("add menuitem %s", w.windowstate.file.path);
-                       var m = new Gtk.MenuItem.with_label(w.windowstate.file.path);
+                       
+                       
+                       
+                       var m = new Gtk.MenuItem.with_label(
+                               file.project.name + " : " + file.getTitle()
+                       );
+                       
+                       w.windowstate.file.path);
                        m.activate.connect(() => {
                                 BuilderApplication.windows.get(wid).el.present();
                        });