public string prop_selected;
public Gtk.CssProvider? css;
public bool key_is_pressed;
- public bool show_line_marks;
public JsRender.Node? node_selected;
// ctor
this.prop_selected = "";
this.css = null;
this.key_is_pressed = false;
- this.show_line_marks = true;
this.node_selected = null;
// set gobject values
this.el.name = "roo-view";
this.el.editable = false;
+ this.el.show_line_marks = true;
this.el.show_line_numbers = true;
+ this.el.css_classes = { "code-editor" };
new Xcls_buffer( _this );
this.el.set_buffer ( _this.buffer.el );
var child_2 = new Xcls_EventControllerKey16( _this );
{
- 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;
buf.set_text("",0);
- var sbuf = (GtkSource.Buffer) buf;
+
// my vars (def)
- public Gtk.CssProvider? css;
// ctor
public Xcls_search_entry(Xcls_WindowRooView _owner )
this.el = new Gtk.SearchEntry();
// my vars (dec)
- this.css = null;
// set gobject values
this.el.name = "roo-search-entry";
child_1.ref();
this.el.add_controller( child_1.el );
- // init method
-
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string(
- "#roo-search-entry { background-color: #ccc; }"
- );
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
//listeners
this.el.search_changed.connect( ( ) => {