Some more icon fixes.
This commit is contained in:
parent
53d1ada429
commit
40ddf94457
@ -44,7 +44,7 @@ class ActivityButton(IconButton):
|
|||||||
|
|
||||||
class InviteButton(IconButton):
|
class InviteButton(IconButton):
|
||||||
def __init__(self, activity_model, invite):
|
def __init__(self, activity_model, invite):
|
||||||
IconButton.__init__(self, icon_name=activity_model.get_color())
|
IconButton.__init__(self, file_name=activity_model.get_icon())
|
||||||
|
|
||||||
self.props.xo_color = activity_model.get_color()
|
self.props.xo_color = activity_model.get_color()
|
||||||
self._invite = invite
|
self._invite = invite
|
||||||
|
@ -67,7 +67,7 @@ class FriendView(hippo.CanvasBox):
|
|||||||
# than hiding the icon?
|
# than hiding the icon?
|
||||||
name = self._get_new_icon_name(home_activity)
|
name = self._get_new_icon_name(home_activity)
|
||||||
if name:
|
if name:
|
||||||
self._activity_icon.props.icon_name = name
|
self._activity_icon.props.file_name = name
|
||||||
self._activity_icon.props.xo_color = buddy.get_color()
|
self._activity_icon.props.xo_color = buddy.get_color()
|
||||||
if not self._activity_icon_visible:
|
if not self._activity_icon_visible:
|
||||||
self.append(self._activity_icon, hippo.PACK_EXPAND)
|
self.append(self._activity_icon, hippo.PACK_EXPAND)
|
||||||
|
@ -176,7 +176,7 @@ class ActivityView(hippo.CanvasBox):
|
|||||||
self._layout = SnowflakeLayout()
|
self._layout = SnowflakeLayout()
|
||||||
self.set_layout(self._layout)
|
self.set_layout(self._layout)
|
||||||
|
|
||||||
self._icon = CanvasIcon(icon_name=model.get_icon_name(),
|
self._icon = CanvasIcon(file_name=model.get_icon_name(),
|
||||||
xo_color=model.get_color(), box_width=80)
|
xo_color=model.get_color(), box_width=80)
|
||||||
self._icon.connect('activated', self._clicked_cb)
|
self._icon.connect('activated', self._clicked_cb)
|
||||||
self._icon.set_tooltip(self._model.get_title())
|
self._icon.set_tooltip(self._model.get_title())
|
||||||
|
Loading…
Reference in New Issue
Block a user