Comment 7 for bug 820080

Revision history for this message
Mario Limonciello (superm1) wrote :

Noticed this happening in Mythbuntu with both the Jockey and the Network Manager icons. Can reproduce it with a simple python script. Same script shows the indicator properly in unity-2d.

#!/usr/bin/python
from gi.repository import AppIndicator3 as AppIndicator
from gi.repository import Gtk
indicator = AppIndicator.Indicator.new('jockey', 'jockey',
                    AppIndicator.IndicatorCategory.HARDWARE)
indicator.set_status(AppIndicator.IndicatorStatus.ATTENTION)

menu = Gtk.Menu()
item = Gtk.MenuItem.new_with_label("Do Stuff")
menu.append(item)
item.show()
item.connect('activate', lambda widget: Gtk.main_quit())
indicator.set_menu(menu)

Gtk.main()