在最新版本的 Ubuntu (11.10) 中,当我从命令行运行时,每次打开窗口时 Gtk 都会发出很大的抱怨声(超过几行)。问题显然出在主题上 - 如果我将默认主题从 更改为 ,这个问题Ambiance
就会High-Contrast
消失。以下是一些示例:
travis@hydrogen:~$ emacs foo.txt
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
travis@hydrogen:~$ evince test.pdf
(evince:1566): GLib-GObject-WARNING **: g_object_set_valist: construct property "enable-gestures" for object `EvView' can't be set after construction
(evince:1566): Gdk-CRITICAL **: gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(evince:1566): Gdk-CRITICAL **: gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(evince:1566): Gdk-CRITICAL **: gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
我喜欢这些主题,不想放弃它们。如何修复 Gtk 的命令行冗长问题?我可以简单地破解命令行以过滤掉这些消息,但我真的不喜欢这个想法。
可能相关
来自先前版本:如何摆脱奇怪的错误行......
答案1
这些Unable to locate theme engine in module_path: "pixmap"
消息是已知的漏洞。
要修复此问题,请安装gtk2-引擎-pixbuf 包裹
运行 Evince 时收到的警告是单独的漏洞。据我所知,目前还没有办法解决这个问题。