From 7448bc6f8a9cfdc59f07416242d401c324a5450b Mon Sep 17 00:00:00 2001 From: erick Date: Wed, 02 Dec 2009 14:11:04 +0000 Subject: Added FrameOverlayer in frame with support for installing and uninstalling actions --- diff --git a/src/jarabe/frame/frame.py b/src/jarabe/frame/frame.py index 0bf0965..a7970be 100644 --- a/src/jarabe/frame/frame.py +++ b/src/jarabe/frame/frame.py @@ -36,6 +36,7 @@ from jarabe.frame.notification import NotificationIcon, NotificationWindow from jarabe.model import notifications from sugar.tutorius.TProbe import TProbe +from sugar.tutorius.overlayer import FrameOverlayer TOP_RIGHT = 0 TOP_LEFT = 1 @@ -135,6 +136,9 @@ class Frame(object): notification_service.notification_cancelled.connect( self.__notification_cancelled_cb) + self._overlayer = FrameOverlayer() + # Initially hiding the overlayer + self._overlayer.hide() self._probe = TProbe(self, "org.sugar.Frame", "1") def is_visible(self): @@ -152,6 +156,8 @@ class Frame(object): self.mode = None + self._overlayer.hide() + def show(self, mode): if self.visible: return @@ -164,6 +170,8 @@ class Frame(object): self._animator.add(_Animation(self, 1.0)) self._animator.start() + self._overlayer.show() + def move(self, pos): self.current_position = pos self._update_position() -- cgit v0.9.1