Comment 8 for bug 1203888

Revision history for this message
Alistair Buxton (a-j-buxton) wrote : Re: appindicator doesn't work in Saucy

Please ignore previous example code. It looks like what is happening is that glipper and blueman are trying to add menu entries after sending the menu to the indicator, which doesn't work any more in Saucy. The following code will display both menu items in 12.04 but in Saucy only "One" is displayed:

#!/usr/bin/env python

import gtk
import appindicator

m = gtk.Menu()
i = gtk.MenuItem('One')
i.show()
m.append(i)

a = appindicator.Indicator('test', '/usr/share/icons/ubuntu-mono-light/stock/22/avatar-default.svg', appindicator.CATEGORY_APPLICATION_STATUS)
a.set_status(appindicator.STATUS_ACTIVE)
a.set_menu(m)

j = gtk.MenuItem('Two')
j.show()
m.append(j)

gtk.main()