'What can I use instead of gtk_container_set_focus_chain()?
The gtk_container_set_focus_chain() function deprecated since GTK 3.24. What can I use instead of?
Solution 1:[1]
The link you provided indicates:
Deprecated since: 3.24
For overriding focus behavior, use the GtkWidgetClass::focus signal.
which, of course, is almost fully undocumented (sigh). I have checked the demos and saw nothing related to this, sadly.
From this migration from GTK3 to GTK4 guide:
In GTK 4, any widget can have children (and
GtkContaineris gone). There is new API to navigate the widget tree, for use in widget implementations:gtk_widget_get_first_child(),gtk_widget_get_last_child(),gtk_widget_get_next_sibling(),gtk_widget_get_prev_sibling().
This could be a good place to start.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | BobMorane |
