[pitivi: 10/11] timelinecanvas.py: paint beveled border between tracks
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi: 10/11] timelinecanvas.py: paint beveled border between tracks
- Date: Mon, 21 Sep 2009 09:56:13 +0000 (UTC)
commit 2d1dd2f99a0b64b9982581e52e3e817ff70c8505
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Wed Sep 2 11:56:01 2009 -0700
timelinecanvas.py: paint beveled border between tracks
pitivi/ui/timelinecanvas.py | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/timelinecanvas.py b/pitivi/ui/timelinecanvas.py
index 4f6284a..93eee1f 100644
--- a/pitivi/ui/timelinecanvas.py
+++ b/pitivi/ui/timelinecanvas.py
@@ -165,6 +165,19 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
event.area.x, event.area.y,
event.area.width, event.area.height)
+ y = 0
+ for track in self._tracks[:-1]:
+ y += track.height
+ self.style.paint_box(event.window,
+ gtk.STATE_NORMAL,
+ gtk.SHADOW_OUT,
+ event.area,
+ self,
+ "",
+ event.area.x - 5, y + 1,
+ event.area.width + 10, TRACK_SPACING - 2)
+ y += TRACK_SPACING
+
goocanvas.Canvas.do_expose_event(self, event)
## implements selection marquee
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]