node-editor: Never scale nodes up

Scaling down is fine so one can see the nodes, but scaling up just
makes the nodes wrong for no reason at all.
This commit is contained in:
Benjamin Otte 2019-05-08 17:17:51 +02:00
parent b3ff4154ec
commit 9117ee83eb

View File

@ -620,6 +620,9 @@ node_editor_window_create_renderer_widget (gpointer item,
gtk_container_add (GTK_CONTAINER (box), label);
picture = gtk_picture_new_for_paintable (paintable);
/* don't ever scale up, we want to be as accurate as possible */
gtk_widget_set_halign (picture, GTK_ALIGN_CENTER);
gtk_widget_set_valign (picture, GTK_ALIGN_CENTER);
gtk_container_add (GTK_CONTAINER (box), picture);
row = gtk_list_box_row_new ();