_Typo Color of sugar.activity.widgets.ActivityButton is owners all time despite of 'icon-color' metadata property #1368

This commit is contained in:
Aleksey Lim 2009-09-18 15:11:24 +00:00
parent 9f981bb5dc
commit acdbae5d4c

View File

@ -34,7 +34,7 @@ _ = lambda msg: gettext.dgettext('sugar-toolkit', msg)
def _create_activity_icon(metadata):
if 'icon-color' in metadata:
if metadata.get('icon-color', ''):
color = XoColor(metadata['icon-color'])
else:
client = gconf.client_get_default()