From b2da99fd4ec0558b3ddcb99b079bc73b9a509619 Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Mon, 11 May 2020 19:21:03 +0500 Subject: [PATCH] tests: Fix testselectionmode Stop using and GtkContainer API for random widgets. --- tests/selectionmode.ui | 3 --- tests/testselectionmode.c | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/selectionmode.ui b/tests/selectionmode.ui index e9b40674ec..a728bd02f8 100644 --- a/tests/selectionmode.ui +++ b/tests/selectionmode.ui @@ -27,7 +27,6 @@ - @@ -80,14 +79,12 @@ - 0 Cancel - diff --git a/tests/testselectionmode.c b/tests/testselectionmode.c index 1d400e76f9..39899109c1 100644 --- a/tests/testselectionmode.c +++ b/tests/testselectionmode.c @@ -30,9 +30,9 @@ selectable_row_init (SelectableRow *row) gtk_widget_show (row->box); gtk_widget_show (row->check); - gtk_container_add (GTK_CONTAINER (row), row->box); + gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (row), row->box); gtk_container_add (GTK_CONTAINER (row->box), row->revealer); - gtk_container_add (GTK_CONTAINER (row->revealer), row->check); + gtk_revealer_set_child (GTK_REVEALER (row->revealer), row->check); } static void