Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTamMini.activity/Mini/InstrumentPanel.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2008-12-17 23:55:01 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2008-12-19 23:50:56 (GMT)
commit2eb7af4bfbc3bca0a08242dfb97facec71928288 (patch)
tree2e8bc7199faf699720bfc1e5a31d9ae94711ca99 /TamTamMini.activity/Mini/InstrumentPanel.py
parentb9e56575b9b4d08cd380f956f114639a523c0142 (diff)
fix horisontal alignment of Instrumants in Mini
Diffstat (limited to 'TamTamMini.activity/Mini/InstrumentPanel.py')
-rw-r--r--TamTamMini.activity/Mini/InstrumentPanel.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/TamTamMini.activity/Mini/InstrumentPanel.py b/TamTamMini.activity/Mini/InstrumentPanel.py
index ca799cb..8271c70 100644
--- a/TamTamMini.activity/Mini/InstrumentPanel.py
+++ b/TamTamMini.activity/Mini/InstrumentPanel.py
@@ -12,7 +12,7 @@ from common.Util import InstrumentDB
from common.Util.ScrolledToolbar import ScrolledToolbar
import sugar.graphics.style as style
-InstrumentSize = 110
+InstrumentSize = 116
Tooltips = Config.Tooltips
class InstrumentPanel( gtk.EventBox ):
@@ -247,16 +247,18 @@ class InstrumentPanel( gtk.EventBox ):
def loadInstrumentViewport( self ):
self.instrumentBox = RoundHBox(fillcolor = Config.INSTRUMENT_GRID_COLOR, bordercolor = Config.PANEL_BCK_COLOR, radius = Config.PANEL_RADIUS)
- self.scrollWin = gtk.ScrolledWindow()
- self.scrollWin.set_policy(gtk.POLICY_NEVER,gtk.POLICY_AUTOMATIC)
-
self.tableEventBox = gtk.EventBox()
color = gtk.gdk.color_parse(Config.INSTRUMENT_GRID_COLOR)
self.tableEventBox.modify_bg(gtk.STATE_NORMAL, color)
- self.scrollWin.add_with_viewport(self.tableEventBox)
+ scrollwin = gtk.ScrolledWindow()
+ scrollwin.set_policy(gtk.POLICY_NEVER,gtk.POLICY_AUTOMATIC)
+ scrollwin.add_with_viewport(self.tableEventBox)
+ alignment = gtk.Alignment(1, 0, 0, 1)
+ alignment.add(scrollwin)
+
self.tableEventBox.get_parent().set_shadow_type( gtk.SHADOW_NONE )
- self.instrumentBox.pack_start(self.scrollWin,True,True,0)
+ self.instrumentBox.pack_start(alignment, True, True, 0)
self.mainVBox.pack_start(self.instrumentBox)
self.show_all()