Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-02-28 19:08:25 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-02-28 19:08:25 (GMT)
commitbe55b4f8ee6ed0eec37cbff87e04cdd50a07bb7f (patch)
treefa6b6138175c145cbc0bed9db4861ef77d7de68d /turtleblocks.py
parent1ee20ec40f99e15978e5e74f2020008332ff7654 (diff)
fix main window sizing in GNOME
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index 4fe4800..9947fe4 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -310,6 +310,7 @@ class TurtleMain():
if os.path.exists(os.path.join(self._execdirname, self._ICON_SUBPATH)):
win.set_icon_from_file(os.path.join(self._execdirname,
self._ICON_SUBPATH))
+ win.show()
win.connect('delete_event', self._quit_ta)
''' Create a scrolled window to contain the turtle canvas. We
@@ -319,7 +320,7 @@ class TurtleMain():
self.fixed = gtk.Fixed()
self.fixed.connect('size-allocate', self._fixed_resize_cb)
width = gtk.gdk.screen_width() - 80
- height = gtk.gdk.screen_height() - 60
+ height = gtk.gdk.screen_height() - 80
self.fixed.set_size_request(width, height)
self.vbox = gtk.VBox(False, 0)