pitivi r1203 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- From: blewis svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1203 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- Date: Sun, 20 Jul 2008 20:37:19 +0000 (UTC)
Author: blewis
Date: Sun Jul 20 20:37:19 2008
New Revision: 1203
URL: http://svn.gnome.org/viewvc/pitivi?rev=1203&view=rev
Log:
* pitivi/ui/ruler.py:
wrapped some more long lines, fixed some indentation issues.
Modified:
branches/SOC_2008_BLEWIS/ChangeLog
branches/SOC_2008_BLEWIS/pitivi/ui/ruler.py
Modified: branches/SOC_2008_BLEWIS/pitivi/ui/ruler.py
==============================================================================
--- branches/SOC_2008_BLEWIS/pitivi/ui/ruler.py (original)
+++ branches/SOC_2008_BLEWIS/pitivi/ui/ruler.py Sun Jul 20 20:37:19 2008
@@ -56,8 +56,8 @@
self.currentlySeeking = False
self.pressed = False
- ## ZoomableWidgetInterface methods are handled by the container (LayerStack)
- ## Except for ZoomChanged
+## ZoomableWidgetInterface methods are handled by the container (LayerStack)
+## Except for ZoomChanged
def zoomChanged(self):
self.doPixmap()
@@ -66,17 +66,18 @@
def getPixelWidth(self):
return ZoomableWidgetInterface.getPixelWidth(self) + 2 * self.border
- ## timeline position changed method
+## timeline position changed method
def timelinePositionChanged(self, value, unused_frame):
previous = self.position
self.position = value
orig = max(self.nsToPixel(min(value, previous)) - 5, 0) + 5
- width = self.nsToPixel(max(value, previous)) + 5 - max(self.nsToPixel(min(value, previous)) - 5, 0)
+ width = (self.nsToPixel(max(value, previous)) + 5
+ - max(self.nsToPixel(min(value, previous)) - 5, 0))
self.queue_draw_area(orig, 0, width,
self.get_allocation().height)
- ## gtk.Widget overrides
+## gtk.Widget overrides
def do_size_allocate(self, allocation):
gst.debug("ScaleRuler got %s" % list(allocation))
@@ -96,9 +97,10 @@
gst.debug("exposing ScaleRuler %s" % list(event.area))
x, y, width, height = event.area
# double buffering power !
- self.bin_window.draw_drawable(self.style.fg_gc[gtk.STATE_NORMAL],
- self.pixmap,
- x, y, x, y, width, height)
+ self.bin_window.draw_drawable(
+ self.style.fg_gc[gtk.STATE_NORMAL],
+ self.pixmap,
+ x, y, x, y, width, height)
# draw the position
context = self.bin_window.cairo_create()
self.drawPosition(context, self.get_allocation())
@@ -126,7 +128,7 @@
self._doSeek(cur)
return False
- ## Seeking methods
+## Seeking methods
def _seekTimeoutCb(self):
gst.debug("timeout")
@@ -144,7 +146,7 @@
elif format == gst.FORMAT_TIME:
self.requested_time = value
- ## Drawing methods
+## Drawing methods
def doPixmap(self):
""" (re)create the buffered drawable for the Widget """
@@ -154,10 +156,12 @@
allocation = self.get_allocation()
lwidth, lheight = self.get_size()
allocation.width = max(allocation.width, lwidth)
- gst.debug("Creating pixmap(self.window, width:%d, height:%d)" % (allocation.width, allocation.height))
+ gst.debug("Creating pixmap(self.window, width:%d, height:%d)"
+ % (allocation.width, allocation.height))
if self.pixmap:
del self.pixmap
- self.pixmap = gtk.gdk.Pixmap(self.bin_window, allocation.width, allocation.height)
+ self.pixmap = gtk.gdk.Pixmap(self.bin_window, allocation.width,
+ allocation.height)
context = self.pixmap.cairo_create()
self.drawBackground(context, allocation)
self.drawRuler(context, allocation)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]