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)
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) appindicator. STATUS_ ACTIVE)
a.set_status(
a.set_menu(m)
j = gtk.MenuItem('Two')
j.show()
m.append(j)
gtk.main()