Re: Gtk and functions



Hello!

The best thing is to create a seperate thread for the recording. Then you
can control this thread from the main thread. When pressing the button you
simply send a message to the recording-thread to stop the recording.

When you don't use a seperate thread for the recording the recording
function is executed all the time and your app won't be able to catch any
click-signals until the recording is being stopped. So pressing the stop
button won't have any effect.

Ciao,

Olaf

----- Original Message -----
From: "Castor Fou" <castor fou wanadoo fr>
To: <gtk-list gnome org>
Sent: Wednesday, June 12, 2002 8:40 PM
Subject: Gtk and functions


> Hi,
> Excuse me but I want to re-explain my problem...
> I connect a function to a button with gtk_signal_connect who records a
> sound. A second button stops the record. But, when I pressed record button
> and then the stop button, I can't stopped the record. Can you explain me
> what do I do ?
> Thanks,
> Romain
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]