src/Builder4/WindowRooView.bjs
authorAlan <alan@roojs.com>
Thu, 8 Feb 2024 09:07:49 +0000 (17:07 +0800)
committerAlan <alan@roojs.com>
Thu, 8 Feb 2024 09:07:49 +0000 (17:07 +0800)
src/Builder4/WindowRooView.vala

src/Builder4/WindowRooView.bjs
src/Builder4/WindowRooView.vala

index 91c9e47..04ef48f 100644 (file)
            "* init" : [
             "\t{",
             "",
-            "\tthis.css = new Gtk.CssProvider();",
-            "\t ",
-            "\tthis.css.load_from_string(",
-            "\t\t\"#roo-view { font:  10px monospace; }\"",
-            "\t);",
-            "",
-            "\tGtk.StyleContext.add_provider_for_display(",
-            "\t\tthis.el.get_display(),",
-            "\t\tthis.css,",
-            "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
-            "\t);",
-            "\t\t",
             "\t ",
             "",
             "\tthis.loading = true;",
index 36b021a..fbf63dc 100644 (file)
@@ -1104,18 +1104,6 @@ public class Xcls_WindowRooView : Object
 
                        {
                        
-                               this.css = new Gtk.CssProvider();
-                                
-                               this.css.load_from_string(
-                                       "#roo-view { font:  10px monospace; }"
-                               );
-                       
-                               Gtk.StyleContext.add_provider_for_display(
-                                       this.el.get_display(),
-                                       this.css,
-                                       Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
-                               );
-                                       
                                 
                        
                                this.loading = true;