summaryrefslogtreecommitdiff
path: root/tests/testaccel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-02 00:51:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:07 -0400
commit67759d4c3ee28bbff9a4ec17f2044822ba732282 (patch)
tree96f80ce99c575bb0ad3c0560cf117e89dd1059b5 /tests/testaccel.c
parent54b613392bb630108340259c84baac4d518fb444 (diff)
downloadgtk+-67759d4c3ee28bbff9a4ec17f2044822ba732282.tar.gz
Use gtk_scrolled_window_set_child throughout
Replace all uses of gtk_container_add on popovers by gtk_scrolled_window_set_child.
Diffstat (limited to 'tests/testaccel.c')
-rw-r--r--tests/testaccel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testaccel.c b/tests/testaccel.c
index d07048cd24..0dc121d7b5 100644
--- a/tests/testaccel.c
+++ b/tests/testaccel.c
@@ -79,7 +79,7 @@ key_test (void)
store = gtk_list_store_new (3, G_TYPE_INT, G_TYPE_UINT, G_TYPE_UINT);
tv = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
- gtk_container_add (GTK_CONTAINER (sw), tv);
+ gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), tv);
column = gtk_tree_view_column_new ();
rend = gtk_cell_renderer_accel_new ();
g_object_set (G_OBJECT (rend),