Fix #8025 - move css to resources
[roobuilder] / src / Builder4 / WindowLeftProps.bjs
index d410cf7..b14e7ab 100644 (file)
      "id" : "EditProps",
      "items" : [
       {
+       "# Xcls_PopoverProperty popover" : "null",
        "$ enable_tree_lines" : true,
        "$ headers_visible" : true,
        "$ xns" : "Gtk",
-       "* init" : [
-        "{",
-        " ",
-        "  \tthis.css = new Gtk.CssProvider();",
-        "\t ",
-        "\t\tthis.css.load_from_string(\"",
-        "#leftprops-view { font-size: 12px;}",
-        "\t ",
-        "#leftprops-view  dropdown button { ",
-        "\t\t\tmin-height: 16px;\t\t\t ",
-        "\t\t\toutline-offset : 0;",
-        "\t\t}",
-        "#leftprops-view cell dropdown label  {",
-        " \t\tpadding-top:0px;",
-        "\t\tpadding-bottom:0px;",
-        "}",
-        "#leftprops-view cell   { ",
-        " \t\tpadding-top:2px;",
-        "\t\tpadding-bottom:2px;",
-        "\t\t}",
-        "#leftprops-view cell label,  #leftprops-view cell editablelable {",
-        " \t\tpadding-top:4px;",
-        "\t\tpadding-bottom:4px;",
-        "}\");",
-        " ",
-        "\t\tGtk.StyleContext.add_provider_for_display(",
-        "\t\tthis.el.get_display(),",
-        "\t\tthis.css,",
-        "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
-        "\t);",
-        "\t\t",
-        "   ",
-        "}",
-        ""
-       ],
        "* pack" : "set_child",
-       "Gtk.CssProvider css" : "",
-       "Xcls_PopoverProperty popover" : "null",
        "bool hexpand" : true,
        "bool show_row_separators" : true,
        "bool single_click_activate" : false,
        "| int getRowAt" : [
         "(double x,  double  y, out string pos) {",
         "",
+        "\tpos = \"\";",
         "\tvar w = this.el.pick(x, y, Gtk.PickFlags.DEFAULT);",
         "\t//GLib.debug(\"got widget %s\", w == null ? \"nothing\" : w.get_type().name());",
         "\tif (w == null) {",