The API for the indicator applet has changed in Karmic and a little internal IBM Python application that I’ve written stopped working. Only a couple of minor changes were needed but trying to track down exactly what these were was not as easy a task as I’d have liked.
Creating the indicator
The class used to represent an indicator appears to have changed from
Indicator so I threw in the following code to try the new one and fallback to the old one:
# Ubuntu 9.10 and above
indicator = indicate.Indicator()
# Ubuntu 9.04
indicator = indicate.IndicatorMessage()
Previously, indicators automatically made the indicator applet draw your attention with a green dot. In Karmic the green dot appears to have been replaced with a change of the envelope colour to black but it is no longer automatic. To make this work you need to set the
Note that they’ve also added a
count property to display how many notifications are from the same source.