From 2577166a9ec64ee2a16abf61397bd75bc279984d Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 14 Mar 2013 11:13:51 +0000 Subject: 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 Acked-by: Manuel QuiƱones --- 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) -- cgit v0.9.1