diff options
author | Timm Bäder <mail@baedert.org> | 2018-12-29 09:49:24 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-01-23 19:30:46 -0500 |
commit | e9e40ddb42842174bc566974a10701373f32a11f (patch) | |
tree | 029fe073047abbb563b417e1ca640657f2a6f7d7 /gtk | |
parent | a543ed84f6a93a5db87c322cafb0da73444dbc72 (diff) | |
download | gtk+-e9e40ddb42842174bc566974a10701373f32a11f.tar.gz |
box: Remove gtk_box_pack_start
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkbox.c | 35 | ||||
-rw-r--r-- | gtk/gtkbox.h | 4 |
2 files changed, 3 insertions, 36 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 3db2291886..940931afc7 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -712,20 +712,6 @@ gtk_box_get_path_for_child (GtkContainer *container, } static void -gtk_box_pack (GtkBox *box, - GtkWidget *child) -{ - GtkContainer *container = GTK_CONTAINER (box); - - g_return_if_fail (GTK_IS_BOX (box)); - g_return_if_fail (GTK_IS_WIDGET (child)); - g_return_if_fail (_gtk_widget_get_parent (child) == NULL); - - gtk_widget_set_parent (child, GTK_WIDGET (box)); - gtk_container_child_notify_by_pspec (container, child, child_props[CHILD_PROP_POSITION]); -} - -static void gtk_box_compute_size_for_opposing_orientation (GtkBox *box, int for_size, gint *minimum_size, @@ -1005,22 +991,6 @@ gtk_box_new (GtkOrientation orientation, } /** - * gtk_box_pack_start: - * @box: a #GtkBox - * @child: the #GtkWidget to be added to @box - * - * Adds @child to @box, packed with reference to the start of @box. - * The @child is packed after any other child packed with reference - * to the start of @box. - */ -void -gtk_box_pack_start (GtkBox *box, - GtkWidget *child) -{ - gtk_box_pack (box, child); -} - -/** * gtk_box_set_homogeneous: * @box: a #GtkBox * @homogeneous: a boolean value, %TRUE to create equal allotments, @@ -1231,9 +1201,10 @@ gtk_box_reorder_child (GtkBox *box, static void gtk_box_add (GtkContainer *container, - GtkWidget *widget) + GtkWidget *child) { - gtk_box_pack_start (GTK_BOX (container), widget); + gtk_widget_set_parent (child, GTK_WIDGET (container)); + gtk_container_child_notify_by_pspec (container, child, child_props[CHILD_PROP_POSITION]); } static void diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h index aa148db0db..fd98927e2e 100644 --- a/gtk/gtkbox.h +++ b/gtk/gtkbox.h @@ -75,10 +75,6 @@ GType gtk_box_get_type (void) G_GNUC_CONST; GDK_AVAILABLE_IN_ALL GtkWidget* gtk_box_new (GtkOrientation orientation, gint spacing); - -GDK_AVAILABLE_IN_ALL -void gtk_box_pack_start (GtkBox *box, - GtkWidget *child); GDK_AVAILABLE_IN_ALL void gtk_box_set_homogeneous (GtkBox *box, gboolean homogeneous); |