src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Sat, 24 Sep 2022 08:57:35 +0000 (16:57 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 24 Sep 2022 08:57:35 +0000 (16:57 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index 417655a..7c95919 100644 (file)
@@ -79,9 +79,9 @@
          "(st, val ) => {",
          "\t ",
          "\t  var description =   Pango.FontDescription.from_string(\"monospace\");",
-         "\t  print(\"resize to %d\", (int)val*1000);",
+         "\t  //print(\"resize to %d\", (int)val*1000);",
          "      description.set_size((int)val*1000);",
-         "      _this.view.el.override_font(description);",
+         "      _this.view.el.set_property(\"font-desc\",description);",
          "      return false;",
          "}"
         ]
index 2e6e1c9..4648e45 100644 (file)
@@ -374,9 +374,9 @@ public class Editor : Object
             this.el.change_value.connect( (st, val ) => {
                 
                  var description =   Pango.FontDescription.from_string("monospace");
-                 print("resize to %d", (int)val*1000);
+                 //print("resize to %d", (int)val*1000);
                   description.set_size((int)val*1000);
-                  _this.view.el.override_font(description);
+                  _this.view.el.set_property("font-desc",description);
                   return false;
             });
         }