[gtk/wip/exalm/test: 10/37] tests: Fix testcombo
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/test: 10/37] tests: Fix testcombo
- Date: Mon, 11 May 2020 15:17:53 +0000 (UTC)
commit 9efdf3c65c17cd287acf51f163ce202d90692940
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon May 11 03:22:34 2020 +0500
tests: Fix testcombo
Don't use GtkContainer API on GtkFrame.
tests/testcombo.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/tests/testcombo.c b/tests/testcombo.c
index 139f6df5b6..2fb35f8186 100644
--- a/tests/testcombo.c
+++ b/tests/testcombo.c
@@ -961,7 +961,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
cellview = gtk_cell_view_new ();
renderer = gtk_cell_renderer_pixbuf_new ();
@@ -982,7 +982,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
model = create_list_blaat ();
combobox = gtk_combo_box_new_with_model (model);
@@ -1022,7 +1022,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
model = create_empty_list_blaat ();
combobox = gtk_combo_box_new_with_model (model);
@@ -1065,7 +1065,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
model = create_list_blaat ();
combobox = gtk_combo_box_new_with_model (model);
@@ -1119,7 +1119,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
model = create_tree_blaat ();
combobox = gtk_combo_box_new_with_model (model);
@@ -1162,7 +1162,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
/* GtkComboBoxEntry */
@@ -1170,7 +1170,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
comboboxtext = gtk_combo_box_text_new_with_entry ();
setup_combo_entry (GTK_COMBO_BOX_TEXT (comboboxtext));
@@ -1182,7 +1182,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
model = create_phylogenetic_tree ();
combobox = gtk_combo_box_new_with_model (model);
@@ -1204,7 +1204,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
model = create_capital_tree ();
combobox = gtk_combo_box_new_with_model (model);
@@ -1235,7 +1235,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
model = create_food_list ();
combobox = gtk_combo_box_new_with_model (model);
@@ -1269,7 +1269,7 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (tmp), boom);
+ gtk_frame_set_child (GTK_FRAME (tmp), boom);
model = create_list_long ();
combobox = gtk_combo_box_new_with_model (model);
@@ -1294,7 +1294,7 @@ main (int argc, char **argv)
g_free (text);
}
gtk_combo_box_set_active (GTK_COMBO_BOX (combobox), 53);
- gtk_container_add (GTK_CONTAINER (tmp), combobox);
+ gtk_frame_set_child (GTK_FRAME (tmp), combobox);
gtk_widget_show (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]