pitivi r1173 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- From: blewis svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1173 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- Date: Wed, 16 Jul 2008 20:41:08 +0000 (UTC)
Author: blewis
Date: Wed Jul 16 20:41:08 2008
New Revision: 1173
URL: http://svn.gnome.org/viewvc/pitivi?rev=1173&view=rev
Log:
* pitivi/ui/timelineobjects.py:
UI no longer passes -1 to PiTiVi core, nor expects to see it returned
from pitivi core
Modified:
branches/SOC_2008_BLEWIS/ChangeLog
branches/SOC_2008_BLEWIS/pitivi/ui/timelineobjects.py
Modified: branches/SOC_2008_BLEWIS/pitivi/ui/timelineobjects.py
==============================================================================
--- branches/SOC_2008_BLEWIS/pitivi/ui/timelineobjects.py (original)
+++ branches/SOC_2008_BLEWIS/pitivi/ui/timelineobjects.py Wed Jul 16 20:41:08 2008
@@ -62,7 +62,7 @@
MINIMUM_WIDTH = 3 * MINIMUM_HEIGHT
def time_to_string(value):
- if value == -1:
+ if value == gst.CLOCK_TIME_NONE:
return "--:--:--.---"
ms = value / gst.MSECOND
sec = ms / 1000
@@ -535,10 +535,10 @@
else:
gst.warning("got pixbuf for a non-handled timestamp")
- def _updateTextFields(self, start=-1, duration=-1):
- if not start == -1:
+ def _updateTextFields(self, start=gst.CLOCK_TIME_NONE, duration=0):
+ if not start == gst.CLOCK_TIME_NONE:
self.startPos.props.label = time_to_string(start)
- if not start == -1 and not duration == -1:
+ if not start == gst.CLOCK_TIME_NONE and not duration == 0:
self.endPos.props.label = time_to_string(start + duration)
def _updateThumbnails(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]