mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
tests: Fix testselectionmode
Stop using <packing/> and GtkContainer API for random widgets.
This commit is contained in:
parent
4361a884bf
commit
b2da99fd4e
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user