mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
Use gtk_expander_set_child throughout
Replace all uses of gtk_container_add on expanders with gtk_expander_set_child.
This commit is contained in:
parent
6b80d90db5
commit
1afc749443
@ -69,7 +69,7 @@ main (int argc, char *argv[])
|
||||
"innuendo, just to make you scroll down or "
|
||||
"resize the window. Do it already !", -1);
|
||||
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), tv);
|
||||
gtk_container_add (GTK_CONTAINER (expander), sw);
|
||||
gtk_expander_set_child (GTK_EXPANDER (expander), sw);
|
||||
gtk_widget_set_hexpand (expander, TRUE);
|
||||
gtk_widget_set_vexpand (expander, TRUE);
|
||||
gtk_container_add (GTK_CONTAINER (area), expander);
|
||||
|
@ -412,7 +412,7 @@ create_window (void)
|
||||
expander = gtk_expander_new ("Flow Box controls");
|
||||
gtk_expander_set_expanded (GTK_EXPANDER (expander), TRUE);
|
||||
flowbox_cntl = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
|
||||
gtk_container_add (GTK_CONTAINER (expander), flowbox_cntl);
|
||||
gtk_expander_set_child (GTK_EXPANDER (expander), flowbox_cntl);
|
||||
gtk_container_add (GTK_CONTAINER (vbox), expander);
|
||||
|
||||
widget = gtk_check_button_new_with_label ("Homogeneous");
|
||||
@ -570,7 +570,7 @@ create_window (void)
|
||||
expander = gtk_expander_new ("Test item controls");
|
||||
gtk_expander_set_expanded (GTK_EXPANDER (expander), TRUE);
|
||||
items_cntl = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
|
||||
gtk_container_add (GTK_CONTAINER (expander), items_cntl);
|
||||
gtk_expander_set_child (GTK_EXPANDER (expander), items_cntl);
|
||||
gtk_container_add (GTK_CONTAINER (vbox), expander);
|
||||
|
||||
/* Add Items control */
|
||||
|
@ -2214,7 +2214,7 @@ create_expander (GtkWidget *widget)
|
||||
|
||||
hidden = gtk_label_new ("Revealed!");
|
||||
|
||||
gtk_container_add (GTK_CONTAINER (expander), hidden);
|
||||
gtk_expander_set_child (GTK_EXPANDER (expander), hidden);
|
||||
}
|
||||
|
||||
if (!gtk_widget_get_visible (window))
|
||||
|
@ -120,7 +120,7 @@ scrollable_policy (void)
|
||||
expander = gtk_expander_new ("Controls");
|
||||
gtk_expander_set_expanded (GTK_EXPANDER (expander), TRUE);
|
||||
cntl = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
|
||||
gtk_container_add (GTK_CONTAINER (expander), cntl);
|
||||
gtk_expander_set_child (GTK_EXPANDER (expander), cntl);
|
||||
gtk_container_add (GTK_CONTAINER (vbox), expander);
|
||||
|
||||
/* Add Horizontal policy control here */
|
||||
|
Loading…
Reference in New Issue
Block a user