View Single Post
omeriko9's Avatar
Posts: 385 | Thanked: 344 times | Joined on Jan 2010 @ Israel
#1
I'm currently doing my first steps in N900 development, working on a status-menu notification app to display a small icon in the status bar when there's a missed call.

When there is an unanswered call, the led is blinking accordingly.
After you view the missed call (by clicking the yellow window or by going straight to the call log in the phone application) the led stops.

How can I "catch" this "event" in python?
I guess it has to do with some registration to a d-bus, but I don't know how to do that in python nor (more important) what is d-bus should I register to.

Another question - I'm using "icon_theme.load_icon(...)" to get a hildon icon and display it in the status bar, but I want a custom png/gif (to display different icons according to the number of missed calls) - it seems not to be working with a file i pick from /home/opt/usr/share/icons/hicolor/...

And another one - how can I make the icon blink (like the 'you have updates' icon)? when I'm using gobject.timeout_add to hide and show it, it takes about 5.4% of CPU - which is too much. I was thinking about animated GIF, but as I said before, I don't even know how to use a PNG as an icon.

Thanks in advance!