Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了学习 GTK 编程,我正在构建一个简单的 GTK 应用程序,它读取目录中的文件并将它们显示为图标。我正在尝试构建类似 Nautilus 图标视图文件资源管理器的东西。我知道右窗格使用 GTK IconView 但左窗格使用什么来显示地点列表?我还查看了 Nautilus 源代码,但发现它对我来说非常复杂,谁能给我一个在 C++ 中使用 GTK IconView 的简单示例?谢谢。
我猜左窗格使用以下内容:
至于 Nautilus 窗口,我听说在图标视图和紧凑视图模式下显示时,它使用自定义表面,因为 gtk.IconView 被认为不够好。列表视图模式很可能使用 gtk.TreeView。