From c7cf792629bff723f55facca935f60739aa28226 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 09 Nov 2013 23:35:33 +0000 Subject: fix bug preventing GNOME version from launching --- 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) -- cgit v0.9.1