src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 31 Jan 2024 09:23:30 +0000 (17:23 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Jan 2024 09:23:30 +0000 (17:23 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index f89b176..6aa9841 100644 (file)
                  "listeners" : {
                   "bind" : [
                    "(listitem) => {",
-                   " var lb = (Gtk.Label) (listitem as Gtk.ListItem).get_child();",
-                   " var item =  (listitem as Gtk.ListItem).get_item() as WindowState;",
-                   " ",
-                   " lb.label = item.project.name;",
+                   "\t var lb = (Gtk.Label) (listitem as Gtk.ListItem).get_child();",
+                   "\t var item =  (listitem as Gtk.ListItem).get_item() as WindowState;",
+                   "\t ",
+                   "\t lb.label = item.project.name;",
                    "",
                    "",
                    "  ",
index 1dd28b8..f411bfe 100644 (file)
@@ -2354,10 +2354,10 @@ public class Xcls_MainWindow : Object
                                (listitem as Gtk.ListItem).activatable = true;
                        });
                        this.el.bind.connect( (listitem) => {
-                        var lb = (Gtk.Label) (listitem as Gtk.ListItem).get_child();
-                        var item =  (listitem as Gtk.ListItem).get_item() as WindowState;
-                        
-                        lb.label = item.project.name;
+                                var lb = (Gtk.Label) (listitem as Gtk.ListItem).get_child();
+                                var item =  (listitem as Gtk.ListItem).get_item() as WindowState;
+                                
+                                lb.label = item.project.name;