From 4f739cbd0338aa9f4e948b531b912a216c85b2f4 Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Thu, 16 May 2013 21:15:03 +0000 Subject: Forgot a get_parent from the revert commit, dbb6504a --- diff --git a/ImageView.py b/ImageView.py index e2b387a..4b4437d 100644 --- a/ImageView.py +++ b/ImageView.py @@ -323,7 +323,7 @@ class ImageViewer(Gtk.DrawingArea, Gtk.Scrollable): self._zoomtouch_scale = scale # Set target point to the relative coordinates of this view. - alloc = self.get_parent().get_allocation() + alloc = self.get_allocation() self._target_point = (center[1] - alloc.x, center[2] - alloc.y) self.queue_draw() -- cgit v0.9.1