Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/face.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-12-31 15:20:23 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-12-31 15:20:23 (GMT)
commit66da5bfc473499a5d4600da4685cdc9031e8c56f (patch)
treee216e4874bc4e63d91adeec9ad6dd8e26b1442fc /face.py
parent2aa1a7eda5093c55b2fb352a495be2831c2575b0 (diff)
Port to gtk3: parent to get_parent
Signed-off-by: Ignacio Rodriguez <ignacio@sugarlabs.org>
Diffstat (limited to 'face.py')
-rw-r--r--face.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/face.py b/face.py
index ffbc2a1..e82edcd 100644
--- a/face.py
+++ b/face.py
@@ -44,7 +44,7 @@ class Face(Gtk.EventBox):
self.face.shut_up()
def __draw_cb(self, widget, context):
- card = self.parent.parent
+ card = self.get_parent().get_parent()
pixbuf = card._read_icon_data('front')
Gdk.cairo_set_source_pixbuf(context, pixbuf, 0, 0)
context.paint()
@@ -58,7 +58,7 @@ def look_at():
screen_, x, y, modifiers_ = display.get_pointer()
for i in _cache:
- if i.parent:
+ if i.get_parent():
i.face.look_at(x, y)
@@ -70,7 +70,7 @@ def acquire():
for i in _cache:
i.face.shut_up()
- if not i.parent:
+ if not i.get_parent():
face = i
if not face: