From fc8714ec1e36c5c1366939e29cc18abb12542d1f Mon Sep 17 00:00:00 2001 From: "Geoffrey D. Bennett" Date: Mon, 14 Mar 2022 09:23:49 +1030 Subject: [PATCH] Fix size of mixer output sockets on Gen 3 18i20 routing Set the alignment on the socket picture to be center rather than fill so if there's extra space available the image doesn't get expanded and look awful. Fixes #1. --- src/window-routing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/window-routing.c b/src/window-routing.c index 921f0e7..8acd1e7 100644 --- a/src/window-routing.c +++ b/src/window-routing.c @@ -334,9 +334,11 @@ static void create_routing_grid(struct alsa_card *card) { } static GtkWidget *make_socket_widget(void) { - return gtk_picture_new_for_resource( + GtkWidget *w = gtk_picture_new_for_resource( "/vu/b4/alsa-scarlett-gui/icons/socket.svg" ); + gtk_widget_set_align(w, GTK_ALIGN_CENTER, GTK_ALIGN_CENTER); + return w; } // something was dropped on a routing source