forked from AuroraMiddleware/gtk
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:
parent
b3ff4154ec
commit
9117ee83eb
@ -620,6 +620,9 @@ node_editor_window_create_renderer_widget (gpointer item,
|
|||||||
gtk_container_add (GTK_CONTAINER (box), label);
|
gtk_container_add (GTK_CONTAINER (box), label);
|
||||||
|
|
||||||
picture = gtk_picture_new_for_paintable (paintable);
|
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);
|
gtk_container_add (GTK_CONTAINER (box), picture);
|
||||||
|
|
||||||
row = gtk_list_box_row_new ();
|
row = gtk_list_box_row_new ();
|
||||||
|
Loading…
Reference in New Issue
Block a user