[pitivi: 5/13] ui/timeline: hide the horizontal scrollbar if the



commit 070f2787dcc9dff12f2caf6886f9de4015298a5c
Author: Alessandro Decina <alessandro decina collabora co uk>
Date:   Wed Mar 11 16:13:02 2009 +0100

    ui/timeline: hide the horizontal scrollbar if the timeline is empty.
---
 pitivi/ui/timeline.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 1152ba2..8cd244d 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -123,7 +123,7 @@ class Timeline(gtk.VBox, Loggable, Zoomable):
         self._canvas = TimelineCanvas(self.timeline)
 
         self.scrolledWindow = gtk.ScrolledWindow(self.hadj)
-        self.scrolledWindow.set_policy(gtk.POLICY_ALWAYS, gtk.POLICY_AUTOMATIC)
+        self.scrolledWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
         self.scrolledWindow.add(self._canvas)
         #FIXME: remove padding between scrollbar and scrolled window
         self.pack_start(self.scrolledWindow, expand=True)



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