summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-01-27 13:50:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-01-27 13:50:05 -0500
commit3c66c27caa94d9944dd592b0670f8f57c41d95f3 (patch)
tree8fee307404a5e67faeef36c3820cadfad70905dd
parent7f4bd6917ee9802af0317aec54b13173ece7dab1 (diff)
downloadgtk+-3c66c27caa94d9944dd592b0670f8f57c41d95f3.tar.gz
docs: Add gtk_widget_grab_default to migration guide
Point out the replacement for this api.
-rw-r--r--docs/reference/gtk/migrating-3to4.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/reference/gtk/migrating-3to4.md b/docs/reference/gtk/migrating-3to4.md
index 3d2fa1638b..597e77c78e 100644
--- a/docs/reference/gtk/migrating-3to4.md
+++ b/docs/reference/gtk/migrating-3to4.md
@@ -1079,6 +1079,11 @@ that wants to override the default handling, you can provide an
implementation of the default.activate action in your widgets' action
groups.
+### Stop using gtk_widget_grab_default()
+
+The function gtk_widget_grab_default() has been removed. If you need
+to mark a widget as default, use gtk_window_set_default_widget() directly.
+
### Stop setting ::has-default and ::has-focus in .ui files
The special handling for the ::has-default and ::has-focus properties