forked from AuroraMiddleware/gtk
Mention focus changes in the migration guide
This commit is contained in:
parent
16c820c2f0
commit
f16c829190
@ -470,6 +470,22 @@
|
|||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Focus handling changes</title>
|
||||||
|
<para>
|
||||||
|
The semantics of the #GtkWidget:can-focus property have changed.
|
||||||
|
In GTK 3, this property only meant that the widget itself would not
|
||||||
|
accept keyboard input, but its children still might (in the case of
|
||||||
|
containers). In GTK 4, if :can-focus is %FALSE, the focus cannot enter
|
||||||
|
the widget or any of its descendents, and the default value has changed
|
||||||
|
from %FALSE to %TRUE.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
The recommended way to influence focus behavior of custom widgets
|
||||||
|
in GTK 4 is to override the focus() and grab_focus() vfuncs.
|
||||||
|
</para>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<title>Stop using GtkEventBox</title>
|
<title>Stop using GtkEventBox</title>
|
||||||
<para>
|
<para>
|
||||||
|
Loading…
Reference in New Issue
Block a user