mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-08 13:30:01 -05:00
envycontrol/: port from GTK2 to GTK3
This commit is contained in:
parent
64b836ed26
commit
60f1430882
12 changed files with 553 additions and 422 deletions
|
|
@ -243,7 +243,7 @@ int midi_init(char *appname, int channel, int midi_enhanced)
|
|||
void mixer_adjust(GtkAdjustment *adj, gpointer data);
|
||||
void mixer_set_mute(int stream, int left, int right);
|
||||
|
||||
void midi_process(gpointer data, gint source, GdkInputCondition condition)
|
||||
gint midi_process(GIOChannel *source, GIOCondition condition, gpointer data)
|
||||
{
|
||||
snd_seq_event_t *ev;
|
||||
static GtkAdjustment *adj=0;
|
||||
|
|
@ -306,6 +306,7 @@ void midi_process(gpointer data, gint source, GdkInputCondition condition)
|
|||
snd_seq_free_event(ev);
|
||||
}
|
||||
while (snd_seq_event_input_pending(seq, 0) > 0);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* ************************************************* */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue