tests: Fix testselectionmode

Stop using <packing/> and GtkContainer API for random widgets.
This commit is contained in:
Alexander Mikhaylenko 2020-05-11 19:21:03 +05:00
parent 4361a884bf
commit b2da99fd4e
2 changed files with 2 additions and 5 deletions

View File

@ -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>

View File

@ -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