diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-11-09 23:35:33 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-11-09 23:35:33 (GMT) |
commit | c7cf792629bff723f55facca935f60739aa28226 (patch) | |
tree | bd803dc2c5b5f8dbe98189733c4f6d3007e1b536 | |
parent | f133849775608c815c05e4e3d38038537dbea55d (diff) |
fix bug preventing GNOME version from launching
-rw-r--r-- | abacus_window.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/abacus_window.py b/abacus_window.py index dd04aed..0e06bcd 100644 --- a/abacus_window.py +++ b/abacus_window.py @@ -806,14 +806,15 @@ class Abacus(): self.scale = 1.33 * Gdk.Screen.height() / 900.0 else: self.scale = 1.33 * Gdk.Screen.width() / 1200.0 - if Gdk.Screen.width() / 14 < style.GRID_CELL_SIZE: - for sep in self.activity.sep: - sep.hide() - sep.props.draw = False - else: - for sep in self.activity.sep: - sep.show() - sep.props.draw = True + if self.sugar: + if Gdk.Screen.width() / 14 < style.GRID_CELL_SIZE: + for sep in self.activity.sep: + sep.hide() + sep.props.draw = False + else: + for sep in self.activity.sep: + sep.show() + sep.props.draw = True self.canvas.set_size_request(Gdk.Screen.width(), Gdk.Screen.height()) self.mode.hide() self.mode.show(reset=True) |