diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h
index ee65956..73cbfed 100644
--- a/gtk/gtkbox.h
+++ b/gtk/gtkbox.h
@@ -86,7 +86,10 @@ struct _GtkBoxClass
  * Use gtk_box_query_child_packing() and gtk_box_set_child_packing() to query
  * and set the #GtkBoxChild.padding, #GtkBoxChild.expand, #GtkBoxChild.fill and
  * #GtkBoxChild.pack fields.
+ *
+ * Deprecated: 2.22: Use gtk_container_get_children() instead.
  */
+#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
 struct _GtkBoxChild
 {
   GtkWidget *widget;
@@ -96,6 +99,7 @@ struct _GtkBoxChild
   guint pack : 1;
   guint is_secondary : 1;
 };
+#endif
 
 
 GType       gtk_box_get_type            (void) G_GNUC_CONST;
