From a43d13aa74d6cd0ef3947a5a4d3feb43a7f07218 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 24 Feb 2020 07:21:46 -0500 Subject: 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. --- gtk/gtkemojicompletion.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gtk/gtkemojicompletion.c') diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c index 41e37ff221..073961cd99 100644 --- a/gtk/gtkemojicompletion.c +++ b/gtk/gtkemojicompletion.c @@ -653,9 +653,8 @@ gtk_emoji_completion_new (GtkText *text) { GtkEmojiCompletion *completion; - completion = GTK_EMOJI_COMPLETION (g_object_new (GTK_TYPE_EMOJI_COMPLETION, - "relative-to", text, - NULL)); + completion = GTK_EMOJI_COMPLETION (g_object_new (GTK_TYPE_EMOJI_COMPLETION, NULL)); + gtk_widget_set_parent (GTK_WIDGET (completion), GTK_WIDGET (text)); connect_signals (completion, text); -- cgit v1.2.1