[gtk/wip/exalm/test: 23/37] tests: Fix testiconview
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/test: 23/37] tests: Fix testiconview
- Date: Mon, 11 May 2020 15:18:58 +0000 (UTC)
commit e0d36d1f2d41c39e68d09c138df9d38cf066443e
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon May 11 18:54:23 2020 +0500
tests: Fix testiconview
Stop using GtkContainer API for GtkPopover.
tests/testiconview.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]