forked from AuroraMiddleware/gtk
testinfobar: Stop using gtk_info_bar_get_content_area()
We have an easier way of adding widgets to the content area of an infobar: Just gtk_container_add() them like usual.
This commit is contained in:
parent
a7de8e6b2f
commit
8612a8a39f
@ -35,7 +35,7 @@ on_activate (GApplication *application,
|
||||
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
|
||||
|
||||
info_bar = gtk_info_bar_new ();
|
||||
gtk_container_add (GTK_CONTAINER (gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar))),
|
||||
gtk_container_add (GTK_CONTAINER (info_bar),
|
||||
gtk_label_new ("Hello!\nI am a GtkInfoBar"));
|
||||
|
||||
widget = gtk_toggle_button_new_with_label ("Toggle :visible");
|
||||
|
Loading…
Reference in New Issue
Block a user