Remove Palette logic out of PaletteWindow
PaletteWindow is the parent class of two different subclases, Palette and _ToolBarPalette. Palette uses state changes intensively in order to display secondary content, but _ToolBarPalette does not. Because of this, Palette overwrites PaletteWindow's popup and popdown methods adding one extra param called "state". This param is not required either in PaletteWindow and specially not in _ToolBarPalette. Therefore, any piece of code inside PaletteWindow which is meant for Palette subclassing, should be moved out of PaletteWindow and placed in the Palette class, where it corresponds. This patch fixes the cases where _ToolBarPalette breaks because of this mismatch. Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>master
parent
2f19a41432
commit
85b173eb25
Loading…
Reference in New Issue