RE: running a function

2005-04-18 Thread Freddie Unpenstein
> I am new to gtk, and trying my hand at writing a mp3player, I > am working on the point of the player that when one song is done > playing it will load and play the next song. How do I run a test > function every couple milli seconds to check to see if it is still > playing or not? is g_timeout_

Re: running a function

2005-04-13 Thread Stefan Kost
Hi timothy check out gstreamer [1]. It has an eos signal that gets emited at the end of stream. Stefan [1] http://gstreamer.freedesktop.net I am new to gtk, and trying my hand at writing a mp3player, I am working on the point of the player that when one song is done playing it will load and play t

Re: running a function

2005-04-13 Thread Paolo Costabel
Yes, just use gboolean(*timeout_callback)(gpointer data); int tag = gtk_timeout_add( 100, timeout_callback, user_data); to add your function and gtk_timeout_remove(tag); to turn it off. timothy johnson wrote: I am new to gtk, and trying my hand at writing a mp3player, I am working on th

running a function

2005-04-12 Thread timothy johnson
I am new to gtk, and trying my hand at writing a mp3player, I am working on the point of the player that when one song is done playing it will load and play the next song. How do I run a test function every couple milli seconds to check to see if it is still playing or not? is g_timeout_add() what