[Sugar-devel] [PATCH sugar-toolkit] Avoid showing decorated windows during start-up (OLPC#10713)

Sascha Silbe silbe at activitycentral.com
Sat Mar 5 06:50:12 EST 2011


As a side effect, activity start-up is now subjectively faster, maybe even
objectively (due to avoiding a resize).

Tested on XO-1 running Debian Squeeze.

Signed-off-by: Sascha Silbe <silbe at activitycentral.com>
---
 src/sugar/graphics/window.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/sugar/graphics/window.py b/src/sugar/graphics/window.py
index 8f368a8..b269efc 100644
--- a/src/sugar/graphics/window.py
+++ b/src/sugar/graphics/window.py
@@ -88,6 +88,8 @@ class Window(gtk.Window):
 
         gtk.Window.__init__(self, **args)
 
+        self.set_decorated(False)
+        self.maximize()
         self.connect('realize', self.__window_realize_cb)
         self.connect('key-press-event', self.__key_press_cb)
 
-- 
1.7.2.3



More information about the Sugar-devel mailing list