inspector: Cosmetics

This commit is contained in:
Matthias Clasen 2019-04-12 14:56:23 -04:00
parent 86c86e0860
commit 8d51038cb1

View File

@ -106,13 +106,9 @@ show_node_prop_editor (NodePropEditor *npe)
gtk_popover_set_pointing_to (GTK_POPOVER (popover), &npe->rect); gtk_popover_set_pointing_to (GTK_POPOVER (popover), &npe->rect);
editor = gtk_inspector_prop_editor_new (G_OBJECT (npe->node), npe->prop_name, NULL); editor = gtk_inspector_prop_editor_new (G_OBJECT (npe->node), npe->prop_name, NULL);
gtk_widget_show (editor);
gtk_container_add (GTK_CONTAINER (popover), editor); gtk_container_add (GTK_CONTAINER (popover), editor);
if (gtk_inspector_prop_editor_should_expand (GTK_INSPECTOR_PROP_EDITOR (editor)))
gtk_widget_set_vexpand (popover, TRUE);
gtk_popover_popup (GTK_POPOVER (popover)); gtk_popover_popup (GTK_POPOVER (popover));
g_signal_connect (popover, "unmap", G_CALLBACK (gtk_widget_destroy), NULL); g_signal_connect (popover, "unmap", G_CALLBACK (gtk_widget_destroy), NULL);