From 853ab0577d0dbe06fe2ea675109c57d5999dba07 Mon Sep 17 00:00:00 2001 From: Nat Date: Thu, 06 Sep 2007 16:46:15 +0000 Subject: Palette fix --- (limited to 'Edit') 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 -- cgit v0.9.1