diff --git a/docs/reference/gtk/migrating-3to4.xml b/docs/reference/gtk/migrating-3to4.xml index 634fcbe71d..570bdca0d7 100644 --- a/docs/reference/gtk/migrating-3to4.xml +++ b/docs/reference/gtk/migrating-3to4.xml @@ -470,6 +470,22 @@ +
+ Focus handling changes + + 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. + + + The recommended way to influence focus behavior of custom widgets + in GTK 4 is to override the focus() and grab_focus() vfuncs. + +
+
Stop using GtkEventBox