summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-07 12:52:49 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-11 22:21:39 -0400
commitbd843acde9d3bca0737071cf9f5d15a1ea2f4661 (patch)
tree68d9e291f5cd833563bdfb3b64fc93b15ae1eb97
parent12ca08c3820ef5b375b2de2fa30b5fad71b4ec2b (diff)
downloadgtk+-bd843acde9d3bca0737071cf9f5d15a1ea2f4661.tar.gz
Use gtk_info_bar_add_child throughout
-rw-r--r--tests/testinfobar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testinfobar.c b/tests/testinfobar.c
index 9145aba9c2..ee7ab749fb 100644
--- a/tests/testinfobar.c
+++ b/tests/testinfobar.c
@@ -35,8 +35,8 @@ on_activate (GApplication *application,
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
info_bar = gtk_info_bar_new ();
- gtk_container_add (GTK_CONTAINER (info_bar),
- gtk_label_new ("Hello!\nI am a GtkInfoBar"));
+ gtk_info_bar_add_child (GTK_INFO_BAR (info_bar),
+ gtk_label_new ("Hello!\nI am a GtkInfoBar"));
widget = gtk_toggle_button_new_with_label ("Toggle :visible");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);