diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-02-25 01:59:29 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-02-25 01:59:29 (GMT) |
commit | c186c76f3c2c9c3c5767d9d17285f18bf1086388 (patch) | |
tree | 0aa2be34db1a0d7331335d12b888272bfb02e39f | |
parent | 3bc72418944ec0bfcb1efbc6f23a4882e9d0699c (diff) |
oops gtk3
-rw-r--r-- | abacus_window.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/abacus_window.py b/abacus_window.py index 3085471..f6d400d 100644 --- a/abacus_window.py +++ b/abacus_window.py @@ -797,14 +797,14 @@ class Abacus(): self.height = Gdk.Screen.height() - GRID_CELL_SIZE if self.width > self.height: self.scale = 1.33 * Gdk.Screen.height() / 900.0 - if gtk.gdk.screen_width() / 14 >= style.GRID_CELL_SIZE: - self.activity.hex.show() - self.activity.binary.show() + if Gdk.Screen.width() / 14 >= style.GRID_CELL_SIZE: + self.activity.hex.show() + self.activity.binary.show() else: self.scale = 1.33 * Gdk.Screen.width() / 1200.0 - if gtk.gdk.screen_width() / 14 < style.GRID_CELL_SIZE: - self.activity.hex.hide() - self.activity.binary.hide() + if Gdk.Screen.width() / 14 < style.GRID_CELL_SIZE: + self.activity.hex.hide() + self.activity.binary.hide() self.canvas.set_size_request(Gdk.Screen.width(), Gdk.Screen.height()) self.mode.hide() self.mode.show(reset=True) |