[gtk/kill-containers: 4/8] Use gtk_info_bar_add_child throughout
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-containers: 4/8] Use gtk_info_bar_add_child throughout
- Date: Thu, 7 May 2020 18:58:07 +0000 (UTC)
commit 4ca110744e35e3a53e1b87865b9e7e6b9a4872ce
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 7 12:52:49 2020 -0400
Use gtk_info_bar_add_child throughout
tests/testinfobar.c | 4 ++--
1 file 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]