gui/gst: Configure timeout with the C interface
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
5368208a37
commit
c48e128d0a
|
@ -104,7 +104,7 @@ static void on_pause_enabled()
|
|||
audio_pause_after(gtk_spin_button_get_value(o_count));
|
||||
}
|
||||
|
||||
static bool on_timeout()
|
||||
static int on_timeout(gpointer data)
|
||||
{
|
||||
gtk_adjustment_set_upper(o_progress, audio_duration());
|
||||
gtk_adjustment_set_value(o_progress, audio_position());
|
||||
|
@ -125,5 +125,5 @@ void gui_audio_init()
|
|||
g_signal_connect(o_count, "changed", G_CALLBACK(on_pause_count), NULL);
|
||||
g_signal_connect(o_enabled, "toggled", G_CALLBACK(on_pause_enabled), NULL);
|
||||
|
||||
Glib :: signal_timeout().connect(sigc::ptr_fun(on_timeout), 500);
|
||||
g_timeout_add(500, on_timeout, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue