Add GtkDial:can_control property

If the dial can't be controlled, it shouldn't be dimmed when it's not
sensitive.
This commit is contained in:
Geoffrey D. Bennett
2024-01-28 20:10:22 +10:30
parent 72d45a0987
commit 1c2d966763
7 changed files with 47 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ GtkWidget *create_mixer_controls(struct alsa_card *card) {
}
// create the gain control and attach to the grid
GtkWidget *w = make_gain_alsa_elem(elem, 1, WIDGET_GAIN_TAPER_LOG);
GtkWidget *w = make_gain_alsa_elem(elem, 1, WIDGET_GAIN_TAPER_LOG, 0);
gtk_grid_attach(GTK_GRID(mixer_top), w, input_num + 1, mix_num + 2, 1, 1);
// look up the r_snk entry for the mixer input number