当前位置: 首页>>技术问答>>正文


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修复命令行的冗长?我可以简单地通过命令行来过滤掉这些消息,但我真的不喜欢这个想法。

可能相关

从以前的版本:How to get rid of odd error line…

最佳解决方法

Unable to locate theme engine in module_path: "pixmap"消息是已知的bug

要修复它,请安装gtk2-engines-pixbuf

themes,gtk,ubuntu

您从运行Evince获得的警告是单独的bug。据我所知,目前还没有解决方案。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/975.html,未经允许,请勿转载。