src/Builder4/WindowLeftTree.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 17 Oct 2022 07:21:55 +0000 (15:21 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Oct 2022 07:21:55 +0000 (15:21 +0800)
src/Builder4/WindowLeftTree.vala

src/Builder4/WindowLeftTree.bjs
src/Builder4/WindowLeftTree.vala

index 5872651..18af308 100644 (file)
        "$ xns" : "Gtk",
        "* init" : [
         "{",
+        "   this.css = new Gtk.CssProvider();",
+        "\ttry {",
+        "\t\tthis.css.load_from_data(\"#left-tree-view { font-size: 10px;}\");",
+        "\t} catch (Error e) {}",
+        "\tthis.el.get_style_context().add_provider(this.css,",
+        "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+        "\t ",
+        "\t ",
+        "    ",
         "    var description = new Pango.FontDescription();",
         "    description.set_size(8000);",
         "    this.el.override_font(description);",
index ccd1070..cb0a5f3 100644 (file)
@@ -154,6 +154,15 @@ public class Xcls_WindowLeftTree : Object
             // init method
 
             {
+               this.css = new Gtk.CssProvider();
+               try {
+                       this.css.load_from_data("#left-tree-view { font-size: 10px;}");
+               } catch (Error e) {}
+               this.el.get_style_context().add_provider(this.css,
+                       Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+                
+                
+                
                 var description = new Pango.FontDescription();
                 description.set_size(8000);
                 this.el.override_font(description);