src/Builder4/WindowLeftProps.bjs
authorAlan <alan@roojs.com>
Thu, 9 Jun 2022 06:07:10 +0000 (14:07 +0800)
committerAlan <alan@roojs.com>
Thu, 9 Jun 2022 06:07:10 +0000 (14:07 +0800)
src/Builder4/WindowLeftProps.vala

src/Builder4/WindowLeftProps.bjs
src/Builder4/WindowLeftProps.vala

index 9bf1783..e13acac 100644 (file)
         "    var description = new Pango.FontDescription();",
         "    description.set_size(10000);",
         "    this.el.override_font(description);",
+        "     if (this.popover == null) {",
+        " \t\t   this.popover = new Xcls_PopoverProperty();",
+        " \t\t   this.popover.mainwindow = _this.main_window;",
+        "\t}",
         "}",
         ""
        ],
        "| void editPropertyDetails" : [
         "(Gtk.TreePath path, int y) {",
         "",
-        "     if (this.popover == null) {",
-        " \t\t   this.popover = new Xcls_PopoverProperty();",
-        " \t\t   this.popover.mainwindow = _this.main_window;",
-        "\t}",
+        "    ",
         "\t",
         "",
         "     _this.before_edit();",
index b0f9fa1..bbf26b2 100644 (file)
@@ -1391,6 +1391,10 @@ public class Xcls_LeftProps : Object
                 var description = new Pango.FontDescription();
                 description.set_size(10000);
                 this.el.override_font(description);
+                 if (this.popover == null) {
+                          this.popover = new Xcls_PopoverProperty();
+                          this.popover.mainwindow = _this.main_window;
+               }
             }
 
             //listeners
@@ -1491,10 +1495,7 @@ public class Xcls_LeftProps : Object
         // user defined functions
         public void editPropertyDetails (Gtk.TreePath path, int y) {
         
-             if (this.popover == null) {
-                          this.popover = new Xcls_PopoverProperty();
-                          this.popover.mainwindow = _this.main_window;
-               }
+            
                
         
              _this.before_edit();