]> Pileus Git - ~andy/gtk/commitdiff
Deprecate GtkBoxChild
authorMatthias Clasen <mclasen@redhat.com>
Sat, 22 May 2010 04:15:00 +0000 (00:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 22 May 2010 04:15:00 +0000 (00:15 -0400)
This was discussed in bug 613132.

gtk/gtkbox.h

index ee6595699cdf9cc7301d8f4a0682051d3e34c0e8..7e9a4cdf181773ddb64b721c4cd44be099efa01f 100644 (file)
@@ -48,7 +48,6 @@ G_BEGIN_DECLS
 
 typedef struct _GtkBox       GtkBox;
 typedef struct _GtkBoxClass   GtkBoxClass;
-typedef struct _GtkBoxChild   GtkBoxChild;
 
 struct _GtkBox
 {
@@ -86,7 +85,11 @@ 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)
+typedef struct _GtkBoxChild   GtkBoxChild;
 struct _GtkBoxChild
 {
   GtkWidget *widget;
@@ -96,7 +99,7 @@ struct _GtkBoxChild
   guint pack : 1;
   guint is_secondary : 1;
 };
-
+#endif
 
 GType       gtk_box_get_type            (void) G_GNUC_CONST;
 GtkWidget* _gtk_box_new                 (GtkOrientation  orientation,