[gtk/wip/exalm/test: 29/37] tests: Fix testselectionmode
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/test: 29/37] tests: Fix testselectionmode
- Date: Mon, 11 May 2020 15:19:29 +0000 (UTC)
commit b2da99fd4ec0558b3ddcb99b079bc73b9a509619
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon May 11 19:21:03 2020 +0500
tests: Fix testselectionmode
Stop using <packing/> 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 @@
</object>
</child>
</object>
- <packing/>
</child>
<child type="title">
<object class="GtkStack" id="titlestack">
@@ -80,14 +79,12 @@
</object>
</child>
</object>
- <packing/>
</child>
<child type="end">
<object class="GtkButton" id="cancel-button">
<property name="visible">0</property>
<property name="label">Cancel</property>
</object>
- <packing/>
</child>
</object>
</child>
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]