Re: Button remains "pressed" until callback function ends



Play the sound in an idle handler which is set in the callback function.

Padraig

Michal Kepien wrote:

Hi, I'm quite a newbie to GTK+ and got some trouble with handling button clicks.
I've got a callback function which reads in and plays a sound file. This
function is connected to the "clicked" event of a button. The problem is, the
button stays "pushed" until the sound playing function finishes its work. I want
the button to pop out immediately after it has been clicked (and of course, the
callback function to play the sound anyway). Is there any way to achieve that?
I've tried to understand the code of some applications which implement such a
feature, but haven't found out anything worth mentioning...

Thanks in advance for any support,
Michal Kepien
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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