summaryrefslogtreecommitdiff
path: root/tests/testiconview.c
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-05-11 18:54:23 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2020-05-11 18:54:23 +0500
commite0d36d1f2d41c39e68d09c138df9d38cf066443e (patch)
tree3a7163efcb1db11b43f6fea44e18dbe4168ed9a1 /tests/testiconview.c
parent68fb643a7e796a59ba8f88824e1f795547b7643c (diff)
downloadgtk+-e0d36d1f2d41c39e68d09c138df9d38cf066443e.tar.gz
tests: Fix testiconview
Stop using GtkContainer API for GtkPopover.
Diffstat (limited to 'tests/testiconview.c')
-rw-r--r--tests/testiconview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testiconview.c b/tests/testiconview.c
index 102eed4d33..1b9c4d942f 100644
--- a/tests/testiconview.c
+++ b/tests/testiconview.c
@@ -349,7 +349,7 @@ do_popup_menu (GtkWidget *icon_list,
g_object_set_data_full (G_OBJECT (menu), "item-path", data, (GDestroyNotify)free_item_data);
item = gtk_button_new_with_label ("Activate");
- gtk_container_add (GTK_CONTAINER (menu), item);
+ gtk_popover_set_child (GTK_POPOVER (menu), item);
g_signal_connect (item, "clicked", G_CALLBACK (item_cb), data);
gtk_popover_popup (GTK_POPOVER (menu));