Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@laptop.org>2013-03-14 11:13:51 (GMT)
committer Simon Schampijer <simon@laptop.org>2013-03-14 15:11:37 (GMT)
commit2577166a9ec64ee2a16abf61397bd75bc279984d (patch)
treef7bc493ede361189ebd60f0b3caf78a690bd7b87
parent692c95f3fc673e039e56ab1f4ae538964031db89 (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.py8
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)