summaryrefslogtreecommitdiff
path: root/gtk/gtkemojicompletion.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 /gtk/gtkemojicompletion.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 'gtk/gtkemojicompletion.c')
-rw-r--r--gtk/gtkemojicompletion.c5
1 files changed, 2 insertions, 3 deletions
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);