inspector: Fix css tree popovers

Adding popovers to a treeview doesn't work. Instead,
attach them to the cssnodetree widget, which is using
a layout manager - popovers work in that case.
This commit is contained in:
Matthias Clasen 2020-05-05 23:51:37 -04:00
parent 824c730362
commit 81c68b86ea

View File

@ -103,7 +103,7 @@ show_node_prop_editor (NodePropEditor *npe)
GtkWidget *editor;
popover = gtk_popover_new ();
gtk_widget_set_parent (popover, GTK_WIDGET (npe->cnt->priv->node_tree));
gtk_widget_set_parent (popover, GTK_WIDGET (npe->cnt));
gtk_popover_set_pointing_to (GTK_POPOVER (popover), &npe->rect);
editor = gtk_inspector_prop_editor_new (G_OBJECT (npe->node), npe->prop_name, NULL);