Fix #7420 - deprication warnings
authorAlan Knowles <alan@roojs.com>
Sun, 25 Sep 2022 04:01:31 +0000 (12:01 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 25 Sep 2022 04:01:31 +0000 (12:01 +0800)
14 files changed:
src/Builder4/Editor.bjs
src/Builder4/Editor.vala
src/Builder4/GtkView.bjs
src/Builder4/GtkView.vala
src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala
src/Builder4/PopoverAddObject.bjs
src/Builder4/PopoverAddObject.vala
src/Builder4/PopoverAddProp.bjs
src/Builder4/PopoverAddProp.vala
src/Builder4/PopoverFiles.bjs
src/Builder4/PopoverFiles.vala
src/Builder4/RooProjectSettings.bjs
src/Builder4/RooProjectSettings.vala

index 06e1673..daa46ea 100644 (file)
        "* init" : [
         " ",
         "",
-        "\t\tthis.css = new Gtk.CssProvider();",
-        "\t\ttry {",
+        "\tthis.css = new Gtk.CssProvider();",
+        "\ttry {",
         "\t\tthis.css.load_from_data(\"#editor-view { font: 10px Monospace;}\");",
-        "\t\t} catch (Error e) {}",
-        "\t\t this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
-        "\t\t ",
+        "\t} catch (Error e) {}",
+        "\tthis.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+        "\t ",
         "\t\t ",
         "",
         "\ttry {        ",
index e6e3038..a556933 100644 (file)
@@ -506,11 +506,11 @@ public class Editor : Object
             // init method
 
             this.css = new Gtk.CssProvider();
-                       try {
+               try {
                        this.css.load_from_data("#editor-view { font: 10px Monospace;}");
-                       } catch (Error e) {}
-                        this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
-                        
+               } catch (Error e) {}
+               this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+                
                         
             
                try {        
index 2aacf52..81bb03a 100644 (file)
@@ -6,6 +6,23 @@
    "# JsRender.JsRender file" : "null",
    "# Xcls_MainWindow main_window" : "",
    "$ xns" : "Gtk",
+   "* init" : [
+    "{",
+    "",
+    "\tthis.css = new Gtk.CssProvider();",
+    "\ttry {",
+    "\t\tthis.css.load_from_data(\"#gtkview-view-layout { background-color: #ccc; }\");",
+    "\t} catch (Error e) {}",
+    "\tthis.el.get_style_context().add_provider(this.css,",
+    "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+    "\t ",
+    " ",
+    "        ",
+    "        ",
+    "}",
+    ""
+   ],
+   "Gtk.CssProvider css" : "",
    "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
    "Gtk.SourceSearchContext searchcontext" : "",
    "bool hexpand" : true,
@@ -51,6 +68,7 @@
            "xtype" : "Box"
           }
          ],
+         "string name" : "gtkview-view-layout",
          "xtype" : "Layout"
         }
        ],
            "* init" : [
             "{",
             "   ",
-            "    var description =   Pango.FontDescription.from_string(\"monospace\");",
-            "    description.set_size(8000);",
-            "    this.el.override_font(description);",
-            "",
+            "   ",
+            "   \tthis.css = new Gtk.CssProvider();",
+            "\ttry {",
+            "\t\tthis.css.load_from_data(\"#gtkview-view { font: 10px Monospace;}\");",
+            "\t} catch (Error e) {}",
+            "\tthis.el.get_style_context().add_provider(this.css,",
+            "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+            "\t ",
+            "\t\t ",
             "    this.loading = true;",
             "    var buf = this.el.get_buffer();",
             "    buf.notify.connect((ps) => {",
             " "
            ],
            "* pack" : "add",
+           "Gtk.CssProvider css" : "",
            "bool allow_node_scroll" : true,
            "bool loading" : true,
            "gboolean editable" : false,
              ""
             ]
            },
+           "string name" : "gtkview-view",
            "xtype" : "SourceView",
            "| string toString" : [
             "() {",
           {
            "$ xns" : "Gtk",
            "* init" : [
-            "var description =   Pango.FontDescription.from_string(\"monospace\");",
-            "\tdescription.set_size(8000);",
-            "\t this.el.override_font(description);",
+            " ",
+            "this.css = new Gtk.CssProvider();",
+            "\ttry {",
+            "\t\tthis.css.load_from_data(\"#gtkview-search-entry { font: 10px Monospace;}\");",
+            "\t} catch (Error e) {}",
+            "\tthis.el.get_style_context().add_provider(this.css,",
+            "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+            "\t ",
+            "\t\t",
             "",
             ""
            ],
+           "Gtk.CssProvider css" : "",
            "bool hexpand" : true,
            "id" : "search_entry",
            "int width_request" : 300,
              "} "
             ]
            },
+           "string name" : "gtkview-search-entry",
            "string placeholder_text" : "Press enter to search",
            "xtype" : "SearchEntry",
            "| void forwardSearch" : [
             {
              "$ xns" : "Gtk",
              "* pack" : "add",
-             "bool always_show_image" : true,
              "bool visible" : false,
              "id" : "search_results",
              "listeners" : {
                "}"
               ]
              },
-             "xtype" : "ImageMenuItem",
+             "xtype" : "MenuItem",
              "| void updateResults" : [
               "() {",
               "\tthis.el.visible = true;",
     "        _this.container.el.set_size_request(w,h);",
     "        ",
     "        _this.view_layout.el.set_size(w,h); // should be baded on calc.. -- see update_scrolled.",
-    "        var rgba = Gdk.RGBA ();",
-    "        rgba.parse (\"#ccc\");",
-    "        _this.view_layout.el.override_background_color(Gtk.StateFlags.NORMAL, rgba);",
-    "        ",
-    "        ",
+    "       ",
+    "       ",
+    "       ",
     "\tvar x = new JsRender.NodeToGtk((Project.Gtk) file.project, file.tree);",
     "    var obj = x.munge() as Gtk.Widget;",
     "    this.lastObj = null;",
index 198deb6..cdc5380 100644 (file)
@@ -30,6 +30,7 @@ public class Xcls_GtkView : Object
 
         // my vars (def)
     public Gtk.Widget lastObj;
+    public Gtk.CssProvider css;
     public Xcls_MainWindow main_window;
     public Gtk.SourceSearchContext searchcontext;
     public int last_search_end;
@@ -57,6 +58,22 @@ public class Xcls_GtkView : Object
         child_0.ref();
         this.el.pack_start (  child_0.el , true,true,0 );
 
+        // init method
+
+        {
+        
+               this.css = new Gtk.CssProvider();
+               try {
+                       this.css.load_from_data("#gtkview-view-layout { background-color: #ccc; }");
+               } catch (Error e) {}
+               this.el.get_style_context().add_provider(this.css,
+                       Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+                
+         
+                
+                
+        }
+
         //listeners
         this.el.size_allocate.connect( (aloc) => {
          
@@ -102,11 +119,9 @@ public class Xcls_GtkView : Object
             _this.container.el.set_size_request(w,h);
             
             _this.view_layout.el.set_size(w,h); // should be baded on calc.. -- see update_scrolled.
-            var rgba = Gdk.RGBA ();
-            rgba.parse ("#ccc");
-            _this.view_layout.el.override_background_color(Gtk.StateFlags.NORMAL, rgba);
-            
-            
+           
+           
+           
        var x = new JsRender.NodeToGtk((Project.Gtk) file.project, file.tree);
         var obj = x.munge() as Gtk.Widget;
         this.lastObj = null;
@@ -460,6 +475,7 @@ public class Xcls_GtkView : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.name = "gtkview-view-layout";
             var child_0 = new Xcls_container( _this );
             child_0.ref();
             this.el.put (  child_0.el , 10,10 );
@@ -554,6 +570,7 @@ public class Xcls_GtkView : Object
         public bool loading;
         public string prop_selected;
         public bool allow_node_scroll;
+        public Gtk.CssProvider css;
         public JsRender.Node? node_selected;
 
         // ctor
@@ -569,6 +586,7 @@ public class Xcls_GtkView : Object
             this.allow_node_scroll = true;
 
             // set gobject values
+            this.el.name = "gtkview-view";
             this.el.editable = false;
             this.el.show_line_marks = true;
             this.el.show_line_numbers = true;
@@ -580,10 +598,15 @@ public class Xcls_GtkView : Object
 
             {
                
-                var description =   Pango.FontDescription.from_string("monospace");
-                description.set_size(8000);
-                this.el.override_font(description);
-            
+               
+                       this.css = new Gtk.CssProvider();
+               try {
+                       this.css.load_from_data("#gtkview-view { font: 10px Monospace;}");
+               } catch (Error e) {}
+               this.el.get_style_context().add_provider(this.css,
+                       Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+                
+                        
                 this.loading = true;
                 var buf = this.el.get_buffer();
                 buf.notify.connect((ps) => {
@@ -982,6 +1005,7 @@ public class Xcls_GtkView : Object
 
 
             // my vars (def)
+        public Gtk.CssProvider css;
 
         // ctor
         public Xcls_search_entry(Xcls_GtkView _owner )
@@ -994,14 +1018,18 @@ public class Xcls_GtkView : Object
 
             // set gobject values
             this.el.width_request = 300;
+            this.el.name = "gtkview-search-entry";
             this.el.hexpand = true;
             this.el.placeholder_text = "Press enter to search";
 
             // init method
 
-            var description =   Pango.FontDescription.from_string("monospace");
-               description.set_size(8000);
-                this.el.override_font(description);
+            this.css = new Gtk.CssProvider();
+               try {
+                       this.css.load_from_data("#gtkview-search-entry { font: 10px Monospace;}");
+               } catch (Error e) {}
+               this.el.get_style_context().add_provider(this.css,
+                       Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
 
             //listeners
             this.el.key_press_event.connect( (event) => {
@@ -1121,7 +1149,7 @@ public class Xcls_GtkView : Object
     }
     public class Xcls_search_results : Object
     {
-        public Gtk.ImageMenuItem el;
+        public Gtk.MenuItem el;
         private Xcls_GtkView  _this;
 
 
@@ -1132,12 +1160,11 @@ public class Xcls_GtkView : Object
         {
             _this = _owner;
             _this.search_results = this;
-            this.el = new Gtk.ImageMenuItem();
+            this.el = new Gtk.MenuItem();
 
             // my vars (dec)
 
             // set gobject values
-            this.el.always_show_image = true;
             this.el.visible = false;
             this.el.show();
 
index faa1457..052ac26 100644 (file)
            "$ xns" : "Gtk",
            "* pack" : "add",
            "Xcls_ValaCompileErrors popup" : "",
-           "bool always_show_image" : true,
            "id" : "statusbar_errors",
            "items" : [
             {
              "$ xns" : "Gtk",
-             "* pack" : "set_image",
-             "utf8 icon_name" : "dialog-error",
-             "xtype" : "Image"
+             "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+             "int spacing" : 2,
+             "items" : [
+              {
+               "$ xns" : "Gtk",
+               "utf8 icon_name" : "dialog-error",
+               "xtype" : "Image"
+              },
+              {
+               "$ xns" : "Gtk",
+               "id" : "statusbar_errors_label",
+               "string label" : "Errors",
+               "xtype" : "Label"
+              }
+             ],
+             "xtype" : "Box"
             }
            ],
            "listeners" : {
              "}"
             ]
            },
-           "string label" : "Errors",
-           "xtype" : "ImageMenuItem",
+           "xtype" : "MenuItem",
            "| void setNotices" : [
             "(Json.Object nots, int qty) {",
-            "    this.el.show();",
-            "    this.el.label = qty.to_string() + \" Errors\";",
+            "    this.el.show_all();",
+            "    _this.statusbar_errors_label.el.label = qty.to_string() + \" Errors\";",
             "    this.notices = nots;",
             "",
             "}",
            "$ xns" : "Gtk",
            "* pack" : "add",
            "Xcls_ValaCompileErrors popup" : "",
-           "bool always_show_image" : true,
            "id" : "statusbar_warnings",
            "items" : [
             {
              "$ xns" : "Gtk",
-             "* pack" : "set_image",
-             "utf8 icon_name" : "dialog-warning",
-             "xtype" : "Image"
+             "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+             "int spacing" : 2,
+             "items" : [
+              {
+               "$ xns" : "Gtk",
+               "utf8 icon_name" : "dialog-warning",
+               "xtype" : "Image"
+              },
+              {
+               "$ xns" : "Gtk",
+               "id" : "statusbar_warnings_label",
+               "string label" : "Errors",
+               "xtype" : "Label"
+              }
+             ],
+             "xtype" : "Box"
             }
            ],
            "listeners" : {
              "}"
             ]
            },
-           "string label" : "Warnings",
-           "xtype" : "ImageMenuItem",
+           "xtype" : "MenuItem",
            "| void setNotices" : [
             "(Json.Object nots, int qty) {",
-            "    this.el.show();",
-            "    this.el.label = qty.to_string() + \" Warnings\";",
+            "    this.el.show_all();",
+            "    _this.statusbar_warnings_label.el.label = qty.to_string() + \" Warnings\";",
             "    this.notices = nots;",
             "",
             "}",
            "$ xns" : "Gtk",
            "* pack" : "add",
            "Xcls_ValaCompileErrors popup" : "",
-           "bool always_show_image" : true,
            "id" : "statusbar_depricated",
            "items" : [
             {
              "$ xns" : "Gtk",
-             "* pack" : "set_image",
-             "utf8 icon_name" : "dialog-information",
-             "xtype" : "Image"
+             "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+             "int spacing" : 2,
+             "items" : [
+              {
+               "$ xns" : "Gtk",
+               "utf8 icon_name" : "dialog-information",
+               "xtype" : "Image"
+              },
+              {
+               "$ xns" : "Gtk",
+               "id" : "statusbar_depricated_label",
+               "string label" : "Errors",
+               "xtype" : "Label"
+              }
+             ],
+             "xtype" : "Box"
             }
            ],
            "listeners" : {
              "}"
             ]
            },
-           "string label" : "Depricated",
-           "xtype" : "ImageMenuItem",
+           "xtype" : "MenuItem",
            "| void setNotices" : [
             "(Json.Object nots, int qty) {",
-            "    this.el.show();",
-            "    this.el.label = qty.to_string() + \" Depricated\";",
+            "    this.el.show_all();",
+            "    _this.statusbar_depricated_label.el.label = qty.to_string() + \" Depricated\";",
             "    this.notices = nots;",
             "",
             "}",
            "$ xns" : "Gtk",
            "* pack" : "add",
            "Xcls_ValaCompileErrors popup" : "",
-           "bool always_show_image" : true,
            "id" : "statusbar_run",
            "items" : [
             {
              "$ xns" : "Gtk",
-             "* pack" : "set_image",
-             "utf8 icon_name" : "media-playback-start",
-             "xtype" : "Image"
+             "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+             "int spacing" : 2,
+             "items" : [
+              {
+               "$ xns" : "Gtk",
+               "utf8 icon_name" : "media-playback-start",
+               "xtype" : "Image"
+              },
+              {
+               "$ xns" : "Gtk",
+               "string label" : "Run",
+               "xtype" : "Label"
+              }
+             ],
+             "xtype" : "Box"
             }
            ],
            "listeners" : {
              "}"
             ]
            },
-           "string label" : "Run",
-           "xtype" : "ImageMenuItem"
+           "xtype" : "MenuItem"
           }
          ],
          "xtype" : "MenuBar"
index 817f5a6..edf96b4 100644 (file)
@@ -27,8 +27,11 @@ public class Xcls_MainWindow : Object
     public Xcls_statusbar statusbar;
     public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
     public Xcls_statusbar_errors statusbar_errors;
+    public Xcls_statusbar_errors_label statusbar_errors_label;
     public Xcls_statusbar_warnings statusbar_warnings;
+    public Xcls_statusbar_warnings_label statusbar_warnings_label;
     public Xcls_statusbar_depricated statusbar_depricated;
+    public Xcls_statusbar_depricated_label statusbar_depricated_label;
     public Xcls_statusbar_run statusbar_run;
     public Xcls_statusbar_compile_spinner statusbar_compile_spinner;
 
@@ -1126,7 +1129,7 @@ public class Xcls_MainWindow : Object
 
     public class Xcls_statusbar_errors : Object
     {
-        public Gtk.ImageMenuItem el;
+        public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
 
 
@@ -1139,17 +1142,15 @@ public class Xcls_MainWindow : Object
         {
             _this = _owner;
             _this.statusbar_errors = this;
-            this.el = new Gtk.ImageMenuItem();
+            this.el = new Gtk.MenuItem();
 
             // my vars (dec)
             this.notices = new Json.Object();
 
             // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Errors";
-            var child_0 = new Xcls_Image35( _this );
+            var child_0 = new Xcls_Box35( _this );
             child_0.ref();
-            this.el.set_image (  child_0.el  );
+            this.el.add(  child_0.el );
             this.el.show();
 
             //listeners
@@ -1167,13 +1168,40 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
         public void setNotices (Json.Object nots, int qty) {
-            this.el.show();
-            this.el.label = qty.to_string() + " Errors";
+            this.el.show_all();
+            _this.statusbar_errors_label.el.label = qty.to_string() + " Errors";
             this.notices = nots;
         
         }
     }
-    public class Xcls_Image35 : Object
+    public class Xcls_Box35 : Object
+    {
+        public Gtk.Box el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Box35(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 2 );
+
+            // my vars (dec)
+
+            // set gobject values
+            var child_0 = new Xcls_Image36( _this );
+            child_0.ref();
+            this.el.add(  child_0.el );
+            var child_1 = new Xcls_statusbar_errors_label( _this );
+            child_1.ref();
+            this.el.add(  child_1.el );
+        }
+
+        // user defined functions
+    }
+    public class Xcls_Image36 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1182,7 +1210,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image35(Xcls_MainWindow _owner )
+        public Xcls_Image36(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1196,10 +1224,34 @@ public class Xcls_MainWindow : Object
         // user defined functions
     }
 
+    public class Xcls_statusbar_errors_label : Object
+    {
+        public Gtk.Label el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_statusbar_errors_label(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.statusbar_errors_label = this;
+            this.el = new Gtk.Label( "Errors" );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions
+    }
+
+
 
     public class Xcls_statusbar_warnings : Object
     {
-        public Gtk.ImageMenuItem el;
+        public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
 
 
@@ -1212,17 +1264,15 @@ public class Xcls_MainWindow : Object
         {
             _this = _owner;
             _this.statusbar_warnings = this;
-            this.el = new Gtk.ImageMenuItem();
+            this.el = new Gtk.MenuItem();
 
             // my vars (dec)
             this.notices = new Json.Object();
 
             // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Warnings";
-            var child_0 = new Xcls_Image37( _this );
+            var child_0 = new Xcls_Box39( _this );
             child_0.ref();
-            this.el.set_image (  child_0.el  );
+            this.el.add(  child_0.el );
             this.el.show();
 
             //listeners
@@ -1239,13 +1289,40 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
         public void setNotices (Json.Object nots, int qty) {
-            this.el.show();
-            this.el.label = qty.to_string() + " Warnings";
+            this.el.show_all();
+            _this.statusbar_warnings_label.el.label = qty.to_string() + " Warnings";
             this.notices = nots;
         
         }
     }
-    public class Xcls_Image37 : Object
+    public class Xcls_Box39 : Object
+    {
+        public Gtk.Box el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Box39(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 2 );
+
+            // my vars (dec)
+
+            // set gobject values
+            var child_0 = new Xcls_Image40( _this );
+            child_0.ref();
+            this.el.add(  child_0.el );
+            var child_1 = new Xcls_statusbar_warnings_label( _this );
+            child_1.ref();
+            this.el.add(  child_1.el );
+        }
+
+        // user defined functions
+    }
+    public class Xcls_Image40 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1254,7 +1331,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image37(Xcls_MainWindow _owner )
+        public Xcls_Image40(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1268,10 +1345,34 @@ public class Xcls_MainWindow : Object
         // user defined functions
     }
 
+    public class Xcls_statusbar_warnings_label : Object
+    {
+        public Gtk.Label el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_statusbar_warnings_label(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.statusbar_warnings_label = this;
+            this.el = new Gtk.Label( "Errors" );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions
+    }
+
+
 
     public class Xcls_statusbar_depricated : Object
     {
-        public Gtk.ImageMenuItem el;
+        public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
 
 
@@ -1284,17 +1385,15 @@ public class Xcls_MainWindow : Object
         {
             _this = _owner;
             _this.statusbar_depricated = this;
-            this.el = new Gtk.ImageMenuItem();
+            this.el = new Gtk.MenuItem();
 
             // my vars (dec)
             this.notices = new Json.Object();
 
             // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Depricated";
-            var child_0 = new Xcls_Image39( _this );
+            var child_0 = new Xcls_Box43( _this );
             child_0.ref();
-            this.el.set_image (  child_0.el  );
+            this.el.add(  child_0.el );
             this.el.show();
 
             //listeners
@@ -1312,13 +1411,40 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
         public void setNotices (Json.Object nots, int qty) {
-            this.el.show();
-            this.el.label = qty.to_string() + " Depricated";
+            this.el.show_all();
+            _this.statusbar_depricated_label.el.label = qty.to_string() + " Depricated";
             this.notices = nots;
         
         }
     }
-    public class Xcls_Image39 : Object
+    public class Xcls_Box43 : Object
+    {
+        public Gtk.Box el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Box43(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 2 );
+
+            // my vars (dec)
+
+            // set gobject values
+            var child_0 = new Xcls_Image44( _this );
+            child_0.ref();
+            this.el.add(  child_0.el );
+            var child_1 = new Xcls_statusbar_depricated_label( _this );
+            child_1.ref();
+            this.el.add(  child_1.el );
+        }
+
+        // user defined functions
+    }
+    public class Xcls_Image44 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1327,7 +1453,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image39(Xcls_MainWindow _owner )
+        public Xcls_Image44(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1341,10 +1467,34 @@ public class Xcls_MainWindow : Object
         // user defined functions
     }
 
+    public class Xcls_statusbar_depricated_label : Object
+    {
+        public Gtk.Label el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_statusbar_depricated_label(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.statusbar_depricated_label = this;
+            this.el = new Gtk.Label( "Errors" );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions
+    }
+
+
 
     public class Xcls_statusbar_run : Object
     {
-        public Gtk.ImageMenuItem el;
+        public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
 
 
@@ -1356,16 +1506,14 @@ public class Xcls_MainWindow : Object
         {
             _this = _owner;
             _this.statusbar_run = this;
-            this.el = new Gtk.ImageMenuItem();
+            this.el = new Gtk.MenuItem();
 
             // my vars (dec)
 
             // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Run";
-            var child_0 = new Xcls_Image41( _this );
+            var child_0 = new Xcls_Box47( _this );
             child_0.ref();
-            this.el.set_image (  child_0.el  );
+            this.el.add(  child_0.el );
             this.el.show();
 
             //listeners
@@ -1383,7 +1531,34 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Image41 : Object
+    public class Xcls_Box47 : Object
+    {
+        public Gtk.Box el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Box47(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 2 );
+
+            // my vars (dec)
+
+            // set gobject values
+            var child_0 = new Xcls_Image48( _this );
+            child_0.ref();
+            this.el.add(  child_0.el );
+            var child_1 = new Xcls_Label49( _this );
+            child_1.ref();
+            this.el.add(  child_1.el );
+        }
+
+        // user defined functions
+    }
+    public class Xcls_Image48 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1392,7 +1567,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image41(Xcls_MainWindow _owner )
+        public Xcls_Image48(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1406,6 +1581,29 @@ public class Xcls_MainWindow : Object
         // user defined functions
     }
 
+    public class Xcls_Label49 : Object
+    {
+        public Gtk.Label el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Label49(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Label( "Run" );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions
+    }
+
+
 
 
     public class Xcls_statusbar_compile_spinner : Object
index 6cbbfc9..52bdeb8 100644 (file)
         "    this.el.set_size_request(150,-1);",
         "                          //  set_reorderable: [1]",
         "                                  ",
-        "    var description = new Pango.FontDescription();",
-        "    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 ",
+        "\t ",
         "    ",
         "    var selection = this.el.get_selection();",
         "    selection.set_mode( Gtk.SelectionMode.SINGLE);",
@@ -62,6 +68,7 @@
         ""
        ],
        "* pack" : "add",
+       "Gtk.CssProvider css" : "",
        "items" : [
         {
          "$ columns" : "typeof(string),typeof(string),typeof(Gdk.Pixbuf)",
          "}"
         ]
        },
+       "string name" : "popover-add-object-view",
        "xtype" : "TreeView"
       }
      ],
index 97fb90c..1283828 100644 (file)
@@ -164,6 +164,7 @@ public class Xcls_PopoverAddObject : Object
 
             // my vars (def)
         public string dragData;
+        public Gtk.CssProvider css;
 
         // ctor
         public Xcls_TreeView3(Xcls_PopoverAddObject _owner )
@@ -174,6 +175,7 @@ public class Xcls_PopoverAddObject : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.name = "popover-add-object-view";
             this.el.enable_tree_lines = true;
             this.el.headers_visible = true;
             var child_0 = new Xcls_model( _this );
@@ -189,9 +191,15 @@ public class Xcls_PopoverAddObject : Object
                 this.el.set_size_request(150,-1);
                                       //  set_reorderable: [1]
                                               
-                var description = new Pango.FontDescription();
-                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);
index 4c9b937..04b2fd0 100644 (file)
        "$ xns" : "Gtk",
        "* init" : [
         "{  ",
-        "       var description = new Pango.FontDescription();",
-        "     description.set_size(10000);",
-        "    this.el.override_font(description);     ",
+        "   ",
+        "\tthis.css = new Gtk.CssProvider();",
+        "\ttry {",
+        "\t\tthis.css.load_from_data(\"#popover-add-prop-view { font-sze: 12px;}\");",
+        "\t} catch (Error e) {}",
+        "   this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+        "\t ",
+        "\t ",
         "                    ",
         "    this.el.get_selection().set_mode( Gtk.SelectionMode.SINGLE);",
         " ",
@@ -43,6 +48,7 @@
         ""
        ],
        "* pack" : "add",
+       "Gtk.CssProvider css" : "",
        "items" : [
         {
          "$ columns" : [
          " "
         ]
        },
+       "string name" : "popover-add-prop-view",
        "tooltip_column" : 2,
        "xtype" : "TreeView"
       }
index f591f54..03f5560 100644 (file)
@@ -157,6 +157,7 @@ public class Xcls_PopoverAddProp : Object
 
 
             // my vars (def)
+        public Gtk.CssProvider css;
 
         // ctor
         public Xcls_TreeView3(Xcls_PopoverAddProp _owner )
@@ -167,6 +168,7 @@ public class Xcls_PopoverAddProp : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.name = "popover-add-prop-view";
             this.el.tooltip_column = 2;
             this.el.enable_tree_lines = true;
             this.el.headers_visible = true;
@@ -186,9 +188,14 @@ public class Xcls_PopoverAddProp : Object
             // init method
 
             {  
-                   var description = new Pango.FontDescription();
-                 description.set_size(10000);
-                this.el.override_font(description);     
+               
+               this.css = new Gtk.CssProvider();
+               try {
+                       this.css.load_from_data("#popover-add-prop-view { font-sze: 12px;}");
+               } catch (Error e) {}
+               this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+                
+                
                                 
                 this.el.get_selection().set_mode( Gtk.SelectionMode.SINGLE);
              
@@ -236,7 +243,7 @@ public class Xcls_PopoverAddProp : Object
         {
             _this = _owner;
             _this.model = this;
-            this.el = new Gtk.ListStore( 6, 
+            this.el = new Gtk.ListStore.newv(  { 
 typeof(JsRender.NodeProp),  // 0 real key
 typeof(string),  // 1 text display
 typeof(string),  // 2 tooltip
@@ -244,7 +251,7 @@ typeof(string),  // 3 sortable string
 typeof(string), // 4  prop type
 typeof(string) // 5 from interface
 
-  );
+  }  );
 
             // my vars (dec)
 
index 42c463a..abca660 100644 (file)
            "$ headers_visible" : true,
            "$ xns" : "Gtk",
            "* init" : [
-            "  var description = new Pango.FontDescription();",
-            "     description.set_size(9000);",
-            "    this.el.override_font(description);     ",
-            "                    ",
-            "    var selection = this.el.get_selection();",
-            "    selection.set_mode( Gtk.SelectionMode.SINGLE);",
-            " ",
+            "   ",
+            "        ",
+            "this.css = new Gtk.CssProvider();",
+            "try {",
+            "\tthis.css.load_from_data(\"#popover-files-view { font-size: 10px;}\");",
+            "} 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);",
+            "",
             "",
             "    ",
             "   ",
             " "
            ],
            "* pack" : "add",
+           "Gtk.CssProvider css" : "",
            "id" : "view",
            "items" : [
             {
              "}  "
             ]
            },
+           "string name" : "popover-files-view",
            "xtype" : "TreeView"
           }
          ],
             {
              "$ xns" : "Gtk",
              "* init" : [
-              "var description =   Pango.FontDescription.from_string(\"monospace\");",
-              "\tdescription.set_size(8000);",
-              "\t this.el.override_font(description);",
+              " ",
               "",
+              "this.css = new Gtk.CssProvider();",
+              "try {",
+              "\tthis.css.load_from_data(\"#popover-files-iconsearch { font: monospace 10px;}\");",
+              "} catch (Error e) {}",
+              "this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+              "        ",
+              "        ",
               ""
              ],
+             "Gtk.CssProvider css" : "",
              "bool hexpand" : true,
              "id" : "iconsearch",
              "listeners" : {
                ""
               ]
              },
+             "string name" : "popover-files-iconsearch",
              "string placeholder_text" : "type to filter results",
              "xtype" : "SearchEntry"
             }
            "$ headers_visible" : true,
            "$ xns" : "Gtk",
            "* init" : [
-            "  var description = new Pango.FontDescription();",
-            "     description.set_size(9000);",
-            "    this.el.override_font(description);     ",
-            "                    ",
-            "    var selection = this.el.get_selection();",
-            "    selection.set_mode( Gtk.SelectionMode.SINGLE);",
+            "",
+            "this.css = new Gtk.CssProvider();",
+            "try {",
+            "\tthis.css.load_from_data(\"#popover-files-fileview { font-size: 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);",
             "",
-            "    ",
-            "   ",
-            " "
+            "",
+            "",
+            "",
+            ""
            ],
            "* pack" : "add",
+           "Gtk.CssProvider css" : "",
            "bool activate_on_single_click" : false,
            "bool expand" : true,
            "id" : "fileview",
              "}"
             ]
            },
+           "string name" : "popover-files-fileview",
            "xtype" : "TreeView"
           }
          ],
index b0975dd..3e53ba5 100644 (file)
@@ -705,6 +705,7 @@ public class Xcls_PopoverFiles : Object
 
 
             // my vars (def)
+        public Gtk.CssProvider css;
 
         // ctor
         public Xcls_view(Xcls_PopoverFiles _owner )
@@ -716,6 +717,7 @@ public class Xcls_PopoverFiles : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.name = "popover-files-view";
             this.el.enable_tree_lines = true;
             this.el.headers_visible = true;
             var child_0 = new Xcls_model( _this );
@@ -727,12 +729,17 @@ public class Xcls_PopoverFiles : Object
 
             // init method
 
-            var description = new Pango.FontDescription();
-                 description.set_size(9000);
-                this.el.override_font(description);     
-                                
-                var selection = this.el.get_selection();
-                selection.set_mode( Gtk.SelectionMode.SINGLE);
+            this.css = new Gtk.CssProvider();
+            try {
+               this.css.load_from_data("#popover-files-view { font-size: 10px;}");
+            } 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);
 
             //listeners
             this.el.cursor_changed.connect( () => {
@@ -916,6 +923,7 @@ public class Xcls_PopoverFiles : Object
 
 
             // my vars (def)
+        public Gtk.CssProvider css;
 
         // ctor
         public Xcls_iconsearch(Xcls_PopoverFiles _owner )
@@ -927,14 +935,17 @@ public class Xcls_PopoverFiles : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.name = "popover-files-iconsearch";
             this.el.hexpand = true;
             this.el.placeholder_text = "type to filter results";
 
             // init method
 
-            var description =   Pango.FontDescription.from_string("monospace");
-               description.set_size(8000);
-                this.el.override_font(description);
+            this.css = new Gtk.CssProvider();
+            try {
+               this.css.load_from_data("#popover-files-iconsearch { font: monospace 10px;}");
+            } catch (Error e) {}
+            this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
 
             //listeners
             this.el.changed.connect( ( ) => {
@@ -1132,6 +1143,7 @@ public class Xcls_PopoverFiles : Object
 
 
             // my vars (def)
+        public Gtk.CssProvider css;
 
         // ctor
         public Xcls_fileview(Xcls_PopoverFiles _owner )
@@ -1143,6 +1155,7 @@ public class Xcls_PopoverFiles : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.name = "popover-files-fileview";
             this.el.activate_on_single_click = false;
             this.el.expand = true;
             this.el.enable_tree_lines = true;
@@ -1156,12 +1169,18 @@ public class Xcls_PopoverFiles : Object
 
             // init method
 
-            var description = new Pango.FontDescription();
-                 description.set_size(9000);
-                this.el.override_font(description);     
-                                
-                var selection = this.el.get_selection();
-                selection.set_mode( Gtk.SelectionMode.SINGLE);
+            this.css = new Gtk.CssProvider();
+            try {
+               this.css.load_from_data("#popover-files-fileview { font-size: 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);
 
             //listeners
             this.el.row_activated.connect( (path, col) => {
index 94620fa..c583683 100644 (file)
@@ -46,8 +46,8 @@
            "$ xns" : "Gtk",
            "* pack" : "pack_start,false,false,4",
            "id" : "grid",
-           "int margin_left" : 4,
-           "int margin_right" : 4,
+           "int margin_end" : 4,
+           "int margin_start" : 4,
            "items" : [
             {
              "$ xns" : "Gtk",
              "$ xns" : "Gtk",
              "* init" : [
               " ",
-              "    var description =   Pango.FontDescription.from_string(\"monospace\");",
-              "    description.set_size(9000);",
-              "    this.el.override_font(description);"
+              "    ",
+              "this.css = new Gtk.CssProvider();",
+              "try {",
+              "\tthis.css.load_from_data(\"#roo-project-settings-view{ font: monospace 10px;}\");",
+              "} catch (Error e) {}",
+              "this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+              "        ",
+              "        "
              ],
              "* pack" : "add",
+             "Gtk.CssProvider css" : "",
              "id" : "view",
              "listeners" : {
               "key_release_event" : [
                "}"
               ]
              },
+             "string name" : "roo-project-settings-view",
              "xtype" : "SourceView"
             }
            ],
index 9633f76..2a84be7 100644 (file)
@@ -288,8 +288,8 @@ public class Xcls_RooProjectSettings : Object
             // my vars (dec)
 
             // set gobject values
-            this.el.margin_right = 4;
-            this.el.margin_left = 4;
+            this.el.margin_end = 4;
+            this.el.margin_start = 4;
             this.el.row_spacing = 2;
             var child_0 = new Xcls_Label8( _this );
             child_0.ref();
@@ -775,6 +775,7 @@ public class Xcls_RooProjectSettings : Object
 
 
             // my vars (def)
+        public Gtk.CssProvider css;
 
         // ctor
         public Xcls_view(Xcls_RooProjectSettings _owner )
@@ -786,12 +787,15 @@ public class Xcls_RooProjectSettings : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.name = "roo-project-settings-view";
 
             // init method
 
-            var description =   Pango.FontDescription.from_string("monospace");
-                description.set_size(9000);
-                this.el.override_font(description);
+            this.css = new Gtk.CssProvider();
+            try {
+               this.css.load_from_data("#roo-project-settings-view{ font: monospace 10px;}");
+            } catch (Error e) {}
+            this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
 
             //listeners
             this.el.key_release_event.connect( ( event) =>{