[pitivi] curve.py,utils.py: move between() function to utils
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] curve.py,utils.py: move between() function to utils
- Date: Fri, 22 Jan 2010 18:03:46 +0000 (UTC)
commit 2c09a610000d076be0a1ae0af38de9ea667ff8ad
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Dec 18 12:54:14 2009 -0800
curve.py,utils.py: move between() function to utils
pitivi/ui/curve.py | 4 +---
pitivi/utils.py | 3 +++
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/curve.py b/pitivi/ui/curve.py
index 96e5029..5eedc92 100644
--- a/pitivi/ui/curve.py
+++ b/pitivi/ui/curve.py
@@ -33,9 +33,7 @@ from pitivi.ui.view import View
from pitivi.ui.controller import Controller
from pitivi.ui.common import LAYER_HEIGHT_EXPANDED
import pitivi.ui.point as point
-
-def between(a, b, c):
- return (a <= b) and (b <= c)
+from pitivi.utils import between
def intersect(b1, b2):
return goocanvas.Bounds(max(b1.x1, b2.x1), max(b1.y1, b2.y1),
diff --git a/pitivi/utils.py b/pitivi/utils.py
index ef6ef49..4f6e3fc 100644
--- a/pitivi/utils.py
+++ b/pitivi/utils.py
@@ -34,6 +34,9 @@ import cProfile
UNKNOWN_DURATION = 2 ** 63 - 1
+def between(a, b, c):
+ return (a <= b) and (b <= c)
+
def time_to_string(value):
"""
Converts the given time in nanoseconds to a human readable string
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]