diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index 514472bd87..9366f16f4c 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -720,7 +720,6 @@ gtk_container_check_resize gtk_container_foreach gtk_container_get_children gtk_container_get_path_for_child -gtk_container_get_focus_child gtk_container_set_focus_child gtk_container_get_focus_vadjustment gtk_container_set_focus_vadjustment diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 206589248d..a5d40d559d 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -1987,28 +1987,6 @@ gtk_container_set_focus_child (GtkContainer *container, g_signal_emit (container, container_signals[SET_FOCUS_CHILD], 0, child); } -/** - * gtk_container_get_focus_child: - * @container: a #GtkContainer - * - * Returns the current focus child widget inside @container. This is not the - * currently focused widget. That can be obtained by calling - * gtk_window_get_focus(). - * - * Returns: (nullable) (transfer none): The child widget which will receive the - * focus inside @container when the @container is focused, - * or %NULL if none is set. - * - * Since: 2.14 - **/ -GtkWidget * -gtk_container_get_focus_child (GtkContainer *container) -{ - g_return_val_if_fail (GTK_IS_CONTAINER (container), NULL); - - return container->priv->focus_child; -} - /** * gtk_container_get_children: * @container: a #GtkContainer diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h index 6725a80e25..f55950315a 100644 --- a/gtk/gtkcontainer.h +++ b/gtk/gtkcontainer.h @@ -158,9 +158,6 @@ GDK_AVAILABLE_IN_ALL void gtk_container_set_focus_child (GtkContainer *container, GtkWidget *child); GDK_AVAILABLE_IN_ALL -GtkWidget * - gtk_container_get_focus_child (GtkContainer *container); -GDK_AVAILABLE_IN_ALL void gtk_container_set_focus_vadjustment (GtkContainer *container, GtkAdjustment *adjustment); GDK_AVAILABLE_IN_ALL