envy24control: port to GTK 4

Closes: https://github.com/alsa-project/alsa-tools/pull/36
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Andreas Persson 2025-04-06 13:27:31 +02:00 committed by Jaroslav Kysela
parent 187eeecd14
commit 4b4886b5f9
8 changed files with 596 additions and 539 deletions

View file

@ -23,14 +23,14 @@
#define ANALOG_PLAYBACK_ROUTE_NAME "H/W Playback Route"
#define toggle_set(widget, state) \
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), state);
gtk_check_button_set_active(GTK_CHECK_BUTTON(widget), state);
static int stream_active[MAX_OUTPUT_CHANNELS + MAX_SPDIF_CHANNELS];
extern int output_channels, input_channels, pcm_output_channels, spdif_channels;
static int is_active(GtkWidget *widget)
{
return gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) ? 1 : 0;
return gtk_check_button_get_active(GTK_CHECK_BUTTON(widget)) ? 1 : 0;
}
static int get_toggle_index(int stream)