[gtk/focus-adjustment: 88/88] docs: Mention focus adjustments in the migration guide



commit b55b1773c0e03c0d35376c72d916230f894d3604
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 18 14:59:52 2020 -0400

    docs: Mention focus adjustments in the migration guide

 docs/reference/gtk/migrating-3to4.xml | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/docs/reference/gtk/migrating-3to4.xml b/docs/reference/gtk/migrating-3to4.xml
index a7867f2e17..f1f8455b19 100644
--- a/docs/reference/gtk/migrating-3to4.xml
+++ b/docs/reference/gtk/migrating-3to4.xml
@@ -494,6 +494,12 @@
         The recommended way to influence focus behavior of custom widgets
         in GTK 4 is to override the focus() and grab_focus() vfuncs.
       </para>
+      <para>
+        The feature to automatically keep the focus widget scrolled into view
+        with gtk_container_set_focus_vadjustment() has been removed from
+        GtkContainer, and is provided by scrollables instead. In the common case
+        that the scrollable is a #GtkViewport, use #GtkViewport:scroll-to-focus.
+      </para>
     </section>
 
     <section>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]