Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/eye.py~
diff options
context:
space:
mode:
Diffstat (limited to 'eye.py~')
-rw-r--r--eye.py~4
1 files changed, 2 insertions, 2 deletions
diff --git a/eye.py~ b/eye.py~
index 2762654..de91565 100644
--- a/eye.py~
+++ b/eye.py~
@@ -23,7 +23,7 @@
import gi
from gi.repository import Gtk
-import Gtk.gdk
+import Gdk
import math
@@ -66,7 +66,7 @@ class Eye(Gtk.DrawingArea):
if self.x is None or self.y is None:
# look ahead, but not *directly* in the middle
- if a.x + a.width / 2 < self.parent.get_allocation().width / 2:
+ if a.x + a.width / 2 < self.parent.get_allocated_width() / 2:
cx = a.width * 0.6
else:
cx = a.width * 0.4