#!/usr/bin/env python
from gi.repository import Gtk
from gi.repository import AppIndicator3 as appindicator
def menuitem_response(w, buf):
print buf
'''
This should be called menuItems or something, not indicatorWidget...
but since a true indicatorwidget sub-classable isn't exposed, this is
the ugly we get.
'''
class indicatorWidget(Gtk.Menu):
def __init__(self):
Gtk.Menu.__init__(self)
for i in range(3):
buf = "Test-undermenu - %d" % i
menu_items = Gtk.MenuItem(buf)