forked from AuroraMiddleware/gtk
Use gtk_info_bar_add_child throughout
This commit is contained in:
parent
12ca08c382
commit
bd843acde9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user