Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-06-03 12:26:36 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-06-03 12:26:36 (GMT)
commit9f7f3a74444282310f35fc5b7288e3a98b42e744 (patch)
tree92c3ddc650b04e1fa1d695b573cb66e1618f24c9
parent69fed18c81ac7104b5a867eabdba81b5dced7c49 (diff)
Set the background to white for a smoother transition
-rw-r--r--src/jarabe/view/launcher.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/jarabe/view/launcher.py b/src/jarabe/view/launcher.py
index 6ddb04a..3071790 100644
--- a/src/jarabe/view/launcher.py
+++ b/src/jarabe/view/launcher.py
@@ -28,14 +28,20 @@ from sugar.graphics.xocolor import XoColor
from jarabe.model import shell
from jarabe.view.pulsingicon import CanvasPulsingIcon
-class LaunchWindow(hippo.CanvasWindow):
+class LaunchWindow(gtk.Window):
def __init__(self, activity_id, icon_path, icon_color):
- gobject.GObject.__init__(
- self, type_hint=gtk.gdk.WINDOW_TYPE_HINT_NORMAL)
+ gobject.GObject.__init__(self)
+
+ self.props.type_hint = gtk.gdk.WINDOW_TYPE_HINT_NORMAL
+
+ canvas = hippo.Canvas()
+ canvas.modify_bg(gtk.STATE_NORMAL, style.COLOR_WHITE.get_gdk_color())
+ self.add(canvas)
+ canvas.show()
self._activity_id = activity_id
self._box = LaunchBox(activity_id, icon_path, icon_color)
- self.set_root(self._box)
+ canvas.set_root(self._box)
self.connect('realize', self.__realize_cb)
@@ -61,8 +67,7 @@ class LaunchWindow(hippo.CanvasWindow):
class LaunchBox(hippo.CanvasBox):
def __init__(self, activity_id, icon_path, icon_color):
- gobject.GObject.__init__(self, orientation=hippo.ORIENTATION_VERTICAL,
- background_color=style.COLOR_WHITE.get_int())
+ gobject.GObject.__init__(self, orientation=hippo.ORIENTATION_VERTICAL)
self._activity_id = activity_id
self._activity_icon = CanvasPulsingIcon(