Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Speak.activity/eye.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-02-03 22:40:51 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-02-03 22:40:51 (GMT)
commit1fda747e34a4583efffadb2d0cbd44d176b86789 (patch)
treeed7e70943ec5a83e24c302eb47de620449088067 /Speak.activity/eye.py
parenta0a134ecca88b8c5ae3f7c2999e13415d9f181b0 (diff)
Add chat toolbar
Diffstat (limited to 'Speak.activity/eye.py')
-rw-r--r--Speak.activity/eye.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Speak.activity/eye.py b/Speak.activity/eye.py
index fb67f6b..b368b41 100644
--- a/Speak.activity/eye.py
+++ b/Speak.activity/eye.py
@@ -29,12 +29,13 @@ import cairo
import math
class Eye(gtk.DrawingArea):
- def __init__(self):
+ def __init__(self, fill_color):
gtk.DrawingArea.__init__(self)
self.connect("expose_event", self.expose)
self.frame = 0
self.blink = False
self.x, self.y = 0,0
+ self.fill_color = fill_color
# listen for clicks
self.add_events(gtk.gdk.BUTTON_PRESS_MASK)
@@ -111,7 +112,7 @@ class Eye(gtk.DrawingArea):
self.context.clip()
# background
- self.context.set_source_rgb(.5,.5,.5)
+ self.context.set_source_rgba(*self.fill_color.get_rgba())
self.context.rectangle(0,0,bounds.width,bounds.height)
self.context.fill()