grass
grass copied to clipboard
wxGUI: Fix behaviour of top Single-Window GUI toolbars
Fixes the non-standard behavior of top Single-Window GUI toolbars.
Bug:
-
bigger icons when undocking and docking the toolbar (takes into consideration that one does not drop a toolbar during that process)
after redocking all toolbars were resized
-
no toolbar name displayed after undocking
After fix: Now it inherits from AuiToolbar. This approach corresponds to the usage of aui agw library which is used for drawing the main window frame.
After conversion to AuiToolbar:
-
sizes of toolbars are still the same
-
toolbar name is displayed after undock
Potentially this PR could also fix some other related bugs (probably different depending on OS) caused by inheriting from the inappropriate wx.Toolbar class.