View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#10
Originally Posted by qwerty12 View Post
When I've finished it, I'll post again with another sample that automatically prints out the state when it changes.
As promised: http://qwerty12.qole.org/pimp2.tar

Make it, and run it on the N900. Whenever the call state changes, you will see a message. Use the code to implement something similar in your code (like !strcmp in the callback for MCE_CALL_STATE_ACTIVE etc. to know if you're in a call, and if you're using gtk_main, ignore the GMainloop stuff in the example.).

I see you've been posting as I've been posting my sample. Take a look at the code I've given first, please.

Merging my "on demand" code in #8 with this shouldn't be hard.