popover: Stop using ::hierarchy-changed

Use notify::root instead.
This commit is contained in:
Matthias Clasen 2019-02-23 00:48:06 -05:00
parent 3ebf19b783
commit 9e231f6333

View File

@ -1685,7 +1685,7 @@ gtk_popover_update_scrollable (GtkPopover *popover)
static void
_gtk_popover_parent_hierarchy_changed (GtkWidget *widget,
GtkWidget *previous_toplevel,
GParamSpec *pspec,
GtkPopover *popover)
{
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
@ -1973,7 +1973,7 @@ gtk_popover_update_relative_to (GtkPopover *popover,
GTK_WINDOW (gtk_widget_get_ancestor (priv->widget, GTK_TYPE_WINDOW));
priv->hierarchy_changed_id =
g_signal_connect (priv->widget, "hierarchy-changed",
g_signal_connect (priv->widget, "notify::root",
G_CALLBACK (_gtk_popover_parent_hierarchy_changed),
popover);
priv->size_allocate_id =