mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-06 01:40:12 -05:00
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:
parent
187eeecd14
commit
4b4886b5f9
8 changed files with 596 additions and 539 deletions
|
|
@ -35,11 +35,11 @@ static snd_ctl_elem_value_t *phono_input;
|
|||
static inline int is_update_needed(void);
|
||||
|
||||
#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 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 void label_set(GtkWidget* widget, const char* str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue