GtkWidget-> GtkToolItem函数?将 GtkWidget 添加到 GtkToolItemGroup

发布于 2024-11-28 04:45:02 字数 146 浏览 6 评论 0原文

我正在看 GtkToolPalette,它看起来很棒。但我想知道是否有可能将 GtkHScale 添加到调色板的一组中。我检查过 GtkToolItemGroup 只能添加 GtkToolItem 类型的项目;有没有办法获取现有 GtkWidget 的 GtkToolItem?

I was looking at GtkToolPalette, it looks great. But I was wondering at the possibility to add a GtkHScale to one of the groups of the palette. I've checked GtkToolItemGroup can add only items of type GtkToolItem; Is there a way to get a GtkToolItem for an existing GtkWidget?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

菊凝晚露 2024-12-05 04:45:02

看看这个:

GtkToolItems 是可以出现在工具栏上的小部件。要创建包含按钮以外的内容的工具栏项,请使用 gtk_tool_item_new()。使用 gtk_container_add() 将子部件添加到工具项。

来自此处

Look at this:

GtkToolItems are widgets that can appear on a toolbar. To create a toolbar item that contain something else than a button, use gtk_tool_item_new(). Use gtk_container_add() to add a child widget to the tool item.

from here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文