src/Builder4/PopoverAddObject.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 25 Sep 2022 03:35:49 +0000 (11:35 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 25 Sep 2022 03:35:49 +0000 (11:35 +0800)
src/Builder4/PopoverAddObject.vala

src/Builder4/PopoverAddObject.bjs
src/Builder4/PopoverAddObject.vala

index 6cbbfc9..005552d 100644 (file)
         "    description.set_size(10000);",
         "    this.el.override_font(description);",
         "    ",
+        "\tthis.css = new Gtk.CssProvider();",
+        "\ttry {",
+        "\t\tthis.css.load_from_data(\"#popover-add-object-view { font-szie: 12px;}\");",
+        "\t} catch (Error e) {}",
+        "\tthis.el.get_style_context().add_provider(this.css,",
+        "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+        "\t ",
+        "    ",
         "    var selection = this.el.get_selection();",
         "    selection.set_mode( Gtk.SelectionMode.SINGLE);",
         "   // this.selection.signal['changed'].connect(function() {",
index 97fb90c..f744b58 100644 (file)
@@ -193,6 +193,14 @@ public class Xcls_PopoverAddObject : Object
                 description.set_size(10000);
                 this.el.override_font(description);
                 
+               this.css = new Gtk.CssProvider();
+               try {
+                       this.css.load_from_data("#popover-add-object-view { font-szie: 12px;}");
+               } catch (Error e) {}
+               this.el.get_style_context().add_provider(this.css,
+                       Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+                
+                
                 var selection = this.el.get_selection();
                 selection.set_mode( Gtk.SelectionMode.SINGLE);
                // this.selection.signal['changed'].connect(function() {