[gtk/wip/exalm/test: 32/37] tests: Fix testtreeelistmodel
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/test: 32/37] tests: Fix testtreeelistmodel
- Date: Mon, 11 May 2020 15:19:44 +0000 (UTC)
commit 58fcd09cffb2caf94d08508cecd81952b9737bdb
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon May 11 19:47:58 2020 +0500
tests: Fix testtreeelistmodel
Stop using GtkContainer API for GtkListBoxRow and GtkToggleButton.
tests/testtreelistmodel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testtreelistmodel.c b/tests/testtreelistmodel.c
index b267fded4c..303951d077 100644
--- a/tests/testtreelistmodel.c
+++ b/tests/testtreelistmodel.c
@@ -175,7 +175,7 @@ create_widget_for_model (gpointer item,
gtk_widget_set_vexpand (row, TRUE);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_container_add (GTK_CONTAINER (row), box);
+ gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (row), box);
depth = gtk_tree_list_row_get_depth (item);
if (depth > 0)
@@ -198,7 +198,7 @@ create_widget_for_model (gpointer item,
gtk_container_add (GTK_CONTAINER (child), title);
arrow = g_object_new (GTK_TYPE_SPINNER, "css-name", "arrow", NULL);
- gtk_container_add (GTK_CONTAINER (title), arrow);
+ gtk_button_set_child (GTK_BUTTON (title), arrow);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]