Use gproperties in IconItem, make the color optional
This commit is contained in:
@@ -13,8 +13,8 @@ class ActivityItem(IconItem):
|
||||
if not icon_name:
|
||||
act_type = activity.get_default_type()
|
||||
raise RuntimeError("Actvity %s did not have an icon!" % act_type)
|
||||
IconItem.__init__(self, icon_name,
|
||||
IconColor('white'), size)
|
||||
IconItem.__init__(self, icon_name=icon_name,
|
||||
color=IconColor('white'), size=size)
|
||||
self._activity = activity
|
||||
|
||||
def get_activity_id(self):
|
||||
|
||||
Reference in New Issue
Block a user