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.
This commit is contained in:
Geoffrey D. Bennett
2022-03-14 09:23:49 +10:30
parent 63cecf4563
commit fc8714ec1e

View File

@@ -334,9 +334,11 @@ static void create_routing_grid(struct alsa_card *card) {
} }
static GtkWidget *make_socket_widget(void) { 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" "/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 // something was dropped on a routing source