Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter 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)
commitc186c76f3c2c9c3c5767d9d17285f18bf1086388 (patch)
tree0aa2be34db1a0d7331335d12b888272bfb02e39f
parent3bc72418944ec0bfcb1efbc6f23a4882e9d0699c (diff)
oops gtk3
-rw-r--r--abacus_window.py12
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)