diff options
author | Simon Schampijer <simon@laptop.org> | 2013-03-14 11:13:51 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2013-03-14 15:13:29 (GMT) |
commit | fac83b0c892eb522d824a8f5fcf3f59b77aedf1c (patch) | |
tree | 0e20308f676d538b79f5b4311fb59d04451417ef | |
parent | 04a4924901b34a2531d95ae3dd7f7a5597acdec5 (diff) |
TransitionBox: replace the CanvasIcon with an Icon, part of SL #4221
The icon in the transition box does not need to be a canvas icon
that reacts to input. It can be an icon only. That helps us to
not trigger any visual hover feedback for that icon.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
-rw-r--r-- | src/jarabe/desktop/transitionbox.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jarabe/desktop/transitionbox.py b/src/jarabe/desktop/transitionbox.py index b124b14..3f8650a 100644 --- a/src/jarabe/desktop/transitionbox.py +++ b/src/jarabe/desktop/transitionbox.py @@ -18,9 +18,9 @@ from gi.repository import GObject from sugar3.graphics import style from sugar3.graphics import animator +from sugar3.graphics.icon import Icon from jarabe.model.buddy import get_owner_instance -from jarabe.view.buddyicon import BuddyIcon from jarabe.desktop.viewcontainer import ViewContainer from jarabe.desktop.favoriteslayout import SpreadLayout @@ -49,8 +49,10 @@ class TransitionBox(ViewContainer): layout = SpreadLayout() # Round off icon size to an even number to ensure that the icon - self._owner_icon = BuddyIcon(buddy=get_owner_instance(), - pixel_size=style.XLARGE_ICON_SIZE & ~1) + owner = get_owner_instance() + self._owner_icon = Icon(icon_name='computer-xo', + xo_color=owner.get_color(), + pixel_size=style.XLARGE_ICON_SIZE & ~1) ViewContainer.__init__(self, layout, self._owner_icon) self._animator = animator.Animator(0.3) |