summaryrefslogtreecommitdiff
path: root/tests/testtooltips.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-24 07:21:46 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-24 20:46:41 -0500
commita43d13aa74d6cd0ef3947a5a4d3feb43a7f07218 (patch)
tree8f427c096d4f6f1e2e6bfd2f1c0e12210bd66026 /tests/testtooltips.c
parent259f465e015756ee2724f182356fd6cd439e9bff (diff)
downloadgtk+-a43d13aa74d6cd0ef3947a5a4d3feb43a7f07218.tar.gz
popover: Drop ::relative-to
It is enough to just set the parent (and make the parent call gtk_native_check_resize in size_allocate). This commit removes the relative_to argument to the constructors of GtkPopover and GtkPopoverMenu, and updates all callers.
Diffstat (limited to 'tests/testtooltips.c')
-rw-r--r--tests/testtooltips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testtooltips.c b/tests/testtooltips.c
index 9b48d6e5a2..86ae731f20 100644
--- a/tests/testtooltips.c
+++ b/tests/testtooltips.c
@@ -420,7 +420,7 @@ main (int argc, char *argv[])
gtk_widget_set_halign (button, GTK_ALIGN_CENTER);
gtk_menu_button_set_label (GTK_MENU_BUTTON (button), "Custom tooltip I");
gtk_container_add (GTK_CONTAINER (box), button);
- popover = gtk_popover_new (NULL);
+ popover = gtk_popover_new ();
gtk_menu_button_set_popover (GTK_MENU_BUTTON (button), popover);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (popover), box2);