Comment 18 for bug 820080

Revision history for this message
Javier Jardón (jjardon) wrote :

Branch ready to review. BTW, the python test case is not correct, should be:

#!/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.ACTIVE) // <- only the active icon is defined with Indicator.new

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()