在 MacOS 上使用 GTK+3 时出现图形故障

问题描述 投票:0回答:0

我们的应用程序突然开始在 MacOS(Monterey,Ventura)中显示一些图形问题。一些对话框窗口标题标题的宽度比窗口的主体更宽;此外,它们在底部显示了一条有缺陷的线:

观察到的另一个问题是某些菜单框显示框容器切割的底线:

我们已经检查了 ui 文件(我们正在使用 GtkBuilder 创建图形界面)但我们找不到任何线索。然而,作为问题超出我们的应用程序的暗示性想法,我们注意到基于 gtk 的 Glade 设计器 (3.40.0) 也存在所描述的问题:

这一切都不会发生在 Linux 上。

规格:

  • MacOS(蒙特雷或文图拉)
  • GTK+3(使用C语言API,Homebrew安装)
  • 我们没有使用 XCode;只是 clangmake.
  • 我们正在以这种方式编译资源:
    glib-compile-resources tntapp.gresource.xml --target=$@ --sourcedir=./tntapp.gresource --generate-source
    
  • 叮当声信息:
    Apple clang version 14.0.0 (clang-1400.0.29.102)
    Target: arm64-apple-darwin22.3.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    
c macos homebrew gtk3 glade
© www.soinside.com 2019 - 2024. All rights reserved.