[pitivi] ui.timeline: deactivate track controls, since we can't do anything with them right now



commit 33380a72453cea787008585acf430444df99b368
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Sat Mar 14 14:43:44 2009 -0700

    ui.timeline: deactivate track controls, since we can't do anything with them right now
---
 pitivi/ui/timeline.py         |    2 +-
 pitivi/ui/timelinecontrols.py |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 2208ee7..6c43c5a 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -131,7 +131,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
 
         # proportional timeline
         self._canvas = TimelineCanvas(self.timeline)
-        timelinewindow = gtk.ScrolledWindow(self.hadj)
+        timelinewindow = gtk.ScrolledWindow(self.hadj, self.vadj)
         timelinewindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
         timelinewindow.add(self._canvas)
         #FIXME: remove padding between scrollbar and scrolled window
diff --git a/pitivi/ui/timelinecontrols.py b/pitivi/ui/timelinecontrols.py
index 25fb22e..58952bd 100644
--- a/pitivi/ui/timelinecontrols.py
+++ b/pitivi/ui/timelinecontrols.py
@@ -20,6 +20,8 @@ class TrackControls(gtk.Expander):
     def __init__(self, track):
         gtk.Expander.__init__(self, track_name(track))
         self.props.use_markup = True
+        self.props.expanded = True
+        self.props.sensitive = False
         self.track = track
         self.set_size_request(TRACK_CONTROL_WIDTH, LAYER_HEIGHT_EXPANDED)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]