#775 Show the activity's creator colors in the donut. (Patch from Dan Winship)

This commit is contained in:
Tomeu Vizoso 2007-07-15 12:51:06 +02:00
parent 66ea9997cb
commit 501022c88d
3 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -1,3 +1,4 @@
* #775 Show the activity's creator colors in the donut. (danw)
* #2185 Do not shutdown on power button, ohm does it now. (marco)
* #1888 Choose the correct mime type when adding text from Write to the
clipboard. (tomeu)

View File

@ -115,7 +115,7 @@ class HomeActivity(gobject.GObject):
pservice = presenceservice.get_instance()
activity = pservice.get_activity(self._activity_id)
if activity != None:
return XoColor(activity.get_color())
return XoColor(activity.props.color)
else:
return profile.get_color()

View File

@ -47,7 +47,7 @@ class ActivityIcon(CanvasIcon):
def __init__(self, activity):
icon_name = activity.get_icon_name()
self._orig_color = profile.get_color()
self._orig_color = activity.get_icon_color()
self._icon_colors = self._compute_icon_colors()
self._direction = 0