Back to index

libindicate  12.10.0
Functions | Variables
im-client Namespace Reference

Functions

def timeout_cb
def display
def server_display

Variables

string PATHA = "/usr/share/icons/hicolor/16x16/apps/empathy.png"
string PATHB = "/usr/share/icons/hicolor/22x22/apps/empathy.png"
 lastpath = None
tuple server = indicate.indicate_server_ref_default()
tuple indicator = indicate.Indicator()

Function Documentation

def im-client.display (   indicator,
  timestamp 
)

Definition at line 51 of file im-client.py.

00051 
00052 def display(indicator, timestamp):
00053     print "Ah, my indicator has been displayed"

def im-client.server_display (   server,
  timestamp 
)

Definition at line 54 of file im-client.py.

00054 
00055 def server_display(server, timestamp):
00056     print "Ah, my server has been displayed"
00057 

def im-client.timeout_cb (   indicator)

Definition at line 36 of file im-client.py.

00036 
00037 def timeout_cb(indicator):
00038     print "Modifying properties"
00039     global lastpath
00040     indicator.set_property_time("time", time())
00041     if lastpath == PATHA:
00042         lastpath = PATHB
00043     else:
00044         lastpath = PATHA
00045 
00046     pixbuf = gtk.gdk.pixbuf_new_from_file(lastpath)
00047 
00048     indicator.set_property_icon("icon", pixbuf)
00049 
00050     return True


Variable Documentation

tuple im-client.indicator = indicate.Indicator()

Definition at line 64 of file im-client.py.

im-client.lastpath = None

Definition at line 34 of file im-client.py.

string im-client.PATHA = "/usr/share/icons/hicolor/16x16/apps/empathy.png"

Definition at line 32 of file im-client.py.

string im-client.PATHB = "/usr/share/icons/hicolor/22x22/apps/empathy.png"

Definition at line 33 of file im-client.py.

tuple im-client.server = indicate.indicate_server_ref_default()

Definition at line 59 of file im-client.py.