装了个ubuntu主题,结果打开文件就出现下面的问题:
luxl@ubuntu-luxl:/home/lab$ gvim vector.cpp
(gvim:20922): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“murrine”,
(gvim:20922): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“murrine”,
(gvim:20922): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“murrine”,
(gvim:20922): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“murrine”,
(gvim:20922): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“murrine”,
上网查找后,发现有位先达这么写的:
昨日安装了Cassandra Mint Green 1.1的GTK 2.x Theme/Style,想用绿色养养眼,安装完成后就奇怪为什么显示出来的很多细节与Gnome -look网站上的截图不一样,比如说下拉菜单鼠标所到之处背景并没有反显为绿色,所有按钮都是硬邦邦的方块等等。因为整体看上去还不算太奇怪,当时就没有多在意。
今天在终端调出gedit,终端反馈Gtk2-warning:无法在模块路径中找到主题引擎: “murrine”。
于是昨日的疑惑又浮了上来。通过一番搜索,终于明白了,不同主题对于窗口、控件的具体描绘在机理上有所不同,想要呈现一些主题独有的特性,需要相应的Theme engine的支持。
所以,解决的方式非常简单
apt-get install gtk2-engines-murrine
事实上,在Gnome-look网站上对这一主题的Description中已经注明了
The color of the included “Cassandra (Green)” theme in Linux Mint is… blue. So here is a modified version.
Included is two themes; one with rounded boxes and stripes, one without.
Both of these rely on the Murrina engine.
看说明还是很重要的。
用了,果然管用!呵呵。

