[pitivi: 1/9] ui/timeline.py: removed spacing between scrollbar and timeline



commit ef33aa509eb21d86011fcdf34e9845133a2448b1
Author: Jeroen Hoolmans <jhoolmans gmail com>
Date:   Tue Aug 17 15:19:17 2010 +0200

    ui/timeline.py: removed spacing between scrollbar and timeline

 pitivi/ui/timeline.py |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 97d3983..1156c6c 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -249,7 +249,18 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         timelinewindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
         timelinewindow.add(self._canvas)
         timelinewindow.set_shadow_type(gtk.SHADOW_IN)
-        #FIXME: remove padding between scrollbar and scrolled window
+        timelinewindow.set_name("timelinewindow")
+
+        # temp fix for padding between scrollbar and scrolled window
+        #FIXME: should be set at an global position for easy editing?
+        gtk.rc_parse_string("""
+            style 'timelinewindow'
+            {
+                GtkScrolledWindow::scrollbar-spacing = 0
+            }
+            widget '*.timelinewindow' style 'timelinewindow'
+        """)
+        
         self.attach(timelinewindow, 1, 2, 1, 2)
 
         # error infostub



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