来自命令行的Gdk Gtk警告和错误
在最新版本的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修复命令行详细程度? 我可以简单地破解命令行来过滤掉这些消息,但我真的不喜欢这个想法。
可能相关
从以前的版本: 如何摆脱奇怪的错误线…
Unable to locate theme engine in module_path: "pixmap"
消息是一个已知的错误 。
要修复它,请安装gtk2-engines-pixbuf 包
从运行Evince获得的警告是一个单独的错误 。 据我所知,目前还没有解决方法。