gpt4 book ai didi

gtk - 我可以用什么代替 gtk_container_set_focus_chain()?

转载 作者:行者123 更新时间:2023-12-05 05:45:52 25 4
gpt4 key购买 nike

gtk_container_set_focus_chain()自 GTK 3.24 以来不推荐使用的函数。我可以用什么代替?

最佳答案

您提供的链接表明:

Deprecated since: 3.24

For overriding focus behavior, use the GtkWidgetClass::focus signal.

当然是almost fully undocumented (叹)。遗憾的是,我已经检查了演示,但没有看到与此相关的任何内容。

从这里migration from GTK3 to GTK4 guide :

In GTK 4, any widget can have children (and GtkContainer is gone).There is new API to navigate the widget tree, for use in widgetimplementations: gtk_widget_get_first_child(),gtk_widget_get_last_child(), gtk_widget_get_next_sibling(),gtk_widget_get_prev_sibling().

这可能是一个很好的起点。

关于gtk - 我可以用什么代替 gtk_container_set_focus_chain()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71276437/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com