[g-a-devel]Re: Gnome-speech and the callbacks



It seems like you wouldn't need to call anything special, since spi_main will already have started the bonobo main loop for you. You say it doesn't work if you just don't call anything?

Marc

At 03:50 PM 1/16/2003 +0100, Draghi Puterity wrote:
Hi Marc,

I'm working to introduce the speech callbacks in Gnopernicus. From your GS
test program I saw that you are making a bonobo_main() call after
registering the SpeechCallback object in order to receive the speech events.
When you call this you stay in this function until you call
bonobo_main_quit() inside the callback function. Well, I can't do this in
Gnopernicus, because we already have a "main loop"; it is the AT-SPI loop
(entered by SPI_event_main()). So I need to somehow be able to instruct the
AT-SPI loop (or something below it ?) to also fire the GS events. I don't
know how to do that, and the available bonobo docs are kind of sparse ;), so
please help me.

I also have two more observations:

- could you provide a second parameter to registerSpeechCallback named
user_data of type gpointer? This would be an opaque pointer for you, that
you just pass me back in each callback. The ideea is to simplify my client
code when I want to associate more data to a callback.

- don't we need also an unregisterSpeechCallback? I saw two bonobo objects
leaked in your demo code, and thought this might be the reason.

Best regards,
Draghi




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