diff options
author | amartin <olpc@xo-05-28-21.localdomain> | 2007-08-16 07:16:18 (GMT) |
---|---|---|
committer | amartin <olpc@xo-05-28-21.localdomain> | 2007-08-16 07:16:18 (GMT) |
commit | a14f0e195641ed7400e7fc4a8db7e2e97db23264 (patch) | |
tree | e03600eba7a3d69d5221ed9475f4b5166d947b3f /Edit/TuneInterface.py | |
parent | 7c62293620b5431e30343ffac9cd4183dab74062 (diff) |
edit layout and dual instruments
Diffstat (limited to 'Edit/TuneInterface.py')
-rw-r--r-- | Edit/TuneInterface.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Edit/TuneInterface.py b/Edit/TuneInterface.py index f9d686f..54095e6 100644 --- a/Edit/TuneInterface.py +++ b/Edit/TuneInterface.py @@ -108,9 +108,8 @@ class TuneInterface( gtk.EventBox ): self.defaultwin = gtk.gdk.get_default_root_window() # used when creating pixmaps self.gc = gtk.gdk.GC( self.defaultwin ) colormap = self.drawingArea.get_colormap() - self.bgColor = colormap.alloc_color( Config.BG_COLOR, True, True ) + self.bgColor = colormap.alloc_color( Config.TOOLBAR_BCK_COLOR, True, True ) self.lineColor = colormap.alloc_color( Config.THUMBNAIL_DRAG_COLOR, True, True ) - self.trackColor = colormap.alloc_color( Config.THUMBNAIL_TRACK_COLOR, True, True ) self.displayedColor = colormap.alloc_color( Config.THUMBNAIL_DISPLAYED_COLOR, True, True ) self.selectedColor = colormap.alloc_color( Config.THUMBNAIL_SELECTED_COLOR, True, True ) @@ -192,7 +191,7 @@ class TuneInterface( gtk.EventBox ): self.clearMask.height = self.height self.clearMask.width = self.width - self.pageY = (self.height-Config.PAGE_THUMBNAIL_HEIGHT)//2 + self.pageY = 2 + (self.height-Config.PAGE_THUMBNAIL_HEIGHT)//2 if self.scrollTo != None: if self.scrollTo >= 0: self.adjustment.set_value( self.scrollTo ) @@ -597,9 +596,10 @@ class TuneInterface( gtk.EventBox ): # draw drop marker if self.dropAt >= 0: + self.gc.set_clip_rectangle( self.clearMask ) self.gc.set_line_attributes( self.dropWidth, gtk.gdk.LINE_SOLID, gtk.gdk.CAP_ROUND, gtk.gdk.JOIN_MITER ) self.gc.foreground = self.lineColor - drawingArea.window.draw_line( self.gc, self.dropAtX, 2, self.dropAtX, Config.PAGE_THUMBNAIL_HEIGHT-4 ) + drawingArea.window.draw_line( self.gc, self.dropAtX, self.pageY+2, self.dropAtX, self.pageY+Config.PAGE_THUMBNAIL_HEIGHT-4 ) def invalidate_rect( self, x, y, width, height ): if self.alloced == False: return |