forked from AuroraMiddleware/gtk
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:
parent
824c730362
commit
81c68b86ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user