From 2a24b8c6534b58051135570399cba8a6b04d34ea Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 9 May 2020 08:26:52 -0400 Subject: Replace most remaining uses of container api These are all on GtkBox or enumerating children. --- gtk/gtkfilechooserbutton.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk/gtkfilechooserbutton.c') diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 29cc1e467f..277b3164f9 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -556,11 +556,11 @@ gtk_file_chooser_button_init (GtkFileChooserButton *button) icon = gtk_image_new_from_icon_name ("document-open-symbolic"); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_widget_set_valign (button->image, GTK_ALIGN_BASELINE); - gtk_container_add (GTK_CONTAINER (box), button->image); + gtk_box_append (GTK_BOX (box), button->image); gtk_widget_set_valign (button->label, GTK_ALIGN_BASELINE); - gtk_container_add (GTK_CONTAINER (box), button->label); + gtk_box_append (GTK_BOX (box), button->label); gtk_widget_set_valign (icon, GTK_ALIGN_BASELINE); - gtk_container_add (GTK_CONTAINER (box), icon); + gtk_box_append (GTK_BOX (box), icon); gtk_button_set_child (GTK_BUTTON (button->button), box); gtk_widget_set_parent (button->button, GTK_WIDGET (button)); -- cgit v1.2.1