GTK 入门页面有一个入门级 GTK 4 代码示例。我成功编译了它。当我运行该程序时,窗口会出现,但我收到很多 Gtk-WARNING 消息到 std...
GTK 入门 页面 从主题解析器 Gtk-WARNING
收到很多
(example-0:26609): Gtk-WARNING **: 22:29:38.895: Theme parser error: gtk.css:1317:51-70: No property named "-gtk-outline-radius"
(example-0:26609): Gtk-WARNING **: 22:29:38.895: Theme parser error: gtk.css:1517:50-64: Not a valid image
(example-0:26609): Gtk-WARNING **: 22:29:38.895: Theme parser error: gtk.css:1519:59-73: Not a valid image
(many more...)
命令 pkg-config
返回以下内容:
$ pkg-config --cflags gtk4
-I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-linux-gnu/graphene-1.0/include -mfpmath=sse -msse -msse2 -pthread
$ pkg-config --libs gtk4
-lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lvulkan -lgraphene-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
如何避免主题解析器的错误?
运行 Ubuntu 24.04,gcc 13.2.0
谢谢。