Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit/MainWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'Edit/MainWindow.py')
-rw-r--r--Edit/MainWindow.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py
index dc284e6..58f82f1 100644
--- a/Edit/MainWindow.py
+++ b/Edit/MainWindow.py
@@ -2053,14 +2053,13 @@ class InstrumentButton( gtk.DrawingArea ):
def set_palette(self, palette):
self._palette = palette
self._palette.props.invoker = WidgetInvoker(self)
+ self._palette.props.invoker._position_hint = WidgetInvoker.AT_CURSOR #This is a hack, will change with newer Palette API
class instrumentPalette(Palette):
def __init__(self, label, trackID, edit):
Palette.__init__(self, label)
-
- self.set_property( "position", Palette.AT_CURSOR )
-
+
self.trackID = trackID
self.edit = edit