Handle per-channel link buttons

Older kernel versions had one link button per channel pair.
This commit is contained in:
Geoffrey D. Bennett
2024-09-29 04:07:07 +09:30
parent 67ccd1d684
commit 2bc6c86a8d

View File

@@ -260,8 +260,13 @@ static void create_input_link_control(
int from, to; int from, to;
get_two_num_from_string(elem->name, &from, &to); get_two_num_from_string(elem->name, &from, &to);
// skip even numbers
if (!(from % 2))
return;
if (to == -1) if (to == -1)
to = from; to = from + 1;
gtk_grid_attach(GTK_GRID(grid), w, from - 1, current_row, to - from + 1, 1); gtk_grid_attach(GTK_GRID(grid), w, from - 1, current_row, to - from + 1, 1);
} }