如何在 GtkSourceView 中加载新样式?
在 Gedit 中,我可以看到它列出了在中找到的样式/usr/share/gtksourceview-3.0/styles,如何让我自己的 GtkSourceView 加载其中一种样式?
如何在 GtkSourceView 中加载新样式?
在 Gedit 中,我可以看到它列出了在中找到的样式/usr/share/gtksourceview-3.0/styles,如何让我自己的 GtkSourceView 加载其中一种样式?
使用set_style_scheme()方法。样式方案可以从默认GtkSource.StyleSchemeManager对象中获得。