diff --git a/docs/reference/gtk/tmpl/gtkbox.sgml b/docs/reference/gtk/tmpl/gtkbox.sgml
index eb42208..2718b84 100644
--- a/docs/reference/gtk/tmpl/gtkbox.sgml
+++ b/docs/reference/gtk/tmpl/gtkbox.sgml
@@ -173,6 +173,7 @@ application.)
 @pack: one of #GtkPackType indicating whether the child is packed with 
   reference to the start (top/left) or end (bottom/right) of the GtkBox.
 @is_secondary: %TRUE if the child is secondary
+@Deprecated: 2.22: Use gtk_container_get_children() instead.
 
 <!-- ##### FUNCTION gtk_box_pack_start ##### -->
 <para>
diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h
index 914683b..359c149 100644
--- a/gtk/gtkbox.h
+++ b/gtk/gtkbox.h
@@ -65,6 +65,7 @@ struct _GtkBoxClass
   GtkContainerClass parent_class;
 };
 
+#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
 struct _GtkBoxChild
 {
   GtkWidget *widget;
@@ -74,6 +75,7 @@ struct _GtkBoxChild
   guint pack : 1;
   guint is_secondary : 1;
 };
+#endif
 
 
 GType       gtk_box_get_type            (void) G_GNUC_CONST;
