1
#=========================
3
# AppIndicator for Windows
9
#=========================
14
# The definitions needed
17
CATEGORY_APPLICATION_STATUS = 0
27
def __init__ (self,unknown,icon,category):
30
self.icon = gtk.StatusIcon()
31
self.icon.set_from_file(icon)
33
# Set the rest of the vars
36
def set_menu(self,menu):
38
# Save a copy of the menu
41
# Now attach the icon's signal
43
self.icon.connect("activate", self.show_menu)
45
def set_status(self,status):
50
def set_icon(self,icon):
55
def set_attention_icon(self,icon):
60
def show_menu(self,widget):
63
self.menu.popup(None,None,None,0,0)