"* init" : [
"{",
" ",
+ " ",
+ " \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",
" 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);
+
+
var description = Pango.FontDescription.from_string("monospace");
description.set_size(8000);
this.el.override_font(description);