Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion envy24control/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void config_close()
void config_set_stereo(GtkWidget *but, gpointer data)
{
gint i=GPOINTER_TO_INT(data);
config_stereo[i]=GTK_TOGGLE_BUTTON(but)->active;
config_stereo[i]=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(but));
}

void config_restore_stereo()
Expand Down
2 changes: 1 addition & 1 deletion envy24control/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ AC_HEADER_STDC
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE([enable])

PKG_CHECK_MODULES(ENVY24CONTROL, gtk+-2.0 alsa >= 0.9.0)
PKG_CHECK_MODULES(ENVY24CONTROL, gtk+-3.0 alsa >= 0.9.0)

AC_OUTPUT(Makefile desktop/Makefile)
7 changes: 4 additions & 3 deletions envy24control/driverevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "envy24control.h"

void control_input_callback(gpointer data, gint source, GdkInputCondition condition)
gboolean control_input_callback(GIOChannel *source, GIOCondition condition, gpointer data)
{
snd_ctl_t *ctl = (snd_ctl_t *)data;
snd_ctl_event_t *ev;
Expand All @@ -29,12 +29,12 @@ void control_input_callback(gpointer data, gint source, GdkInputCondition condit

snd_ctl_event_alloca(&ev);
if (snd_ctl_read(ctl, ev) < 0)
return;
return TRUE;
name = snd_ctl_event_elem_get_name(ev);
index = snd_ctl_event_elem_get_index(ev);
mask = snd_ctl_event_elem_get_mask(ev);
if (! (mask & (SND_CTL_EVENT_MASK_VALUE | SND_CTL_EVENT_MASK_INFO)))
return;
return TRUE;

switch (snd_ctl_event_elem_get_interface(ev)) {
case SND_CTL_ELEM_IFACE_MIXER:
Expand Down Expand Up @@ -88,5 +88,6 @@ void control_input_callback(gpointer data, gint source, GdkInputCondition condit
default:
break;
}
return TRUE;
}

Loading