[pitivi] curve.py: adjust is_item_at to account for overflow
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] curve.py: adjust is_item_at to account for overflow
- Date: Mon, 8 Feb 2010 16:48:23 +0000 (UTC)
commit 6f48752ee0b2d2ef60cdb20dfbedabc5f3e71df8
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Wed Jan 27 12:51:29 2010 -0800
curve.py: adjust is_item_at to account for overflow
pitivi/ui/curve.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/curve.py b/pitivi/ui/curve.py
index b5cfdfd..7467ddd 100644
--- a/pitivi/ui/curve.py
+++ b/pitivi/ui/curve.py
@@ -283,8 +283,9 @@ class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
self._controlPoint(cr, kf)
def do_simple_is_item_at(self, x, y, cr, pointer_event):
- if (between(0, x, self.nsToPixel(self.element.duration)) and
- between(0, y, self.height)):
+ if (between(0, x, self.visible_width) and
+ between(KW_LABEL_Y_OVERFLOW, y, self.height +
+ KW_LABEL_Y_OVERFLOW)):
x += self.bounds.x1
y += self.bounds.y1
cr.new_path()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]