When running on Windows, hide the Engine dialog before calling 'push_state_to_backend()'
authorJohn Emmas <johne53@tiscali.co.uk>
Tue, 14 Apr 2015 10:18:50 +0000 (11:18 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Tue, 14 Apr 2015 10:22:14 +0000 (11:22 +0100)
commit15bf19961f743d03581d0dee15858444e775df82
tree015e8a76d96a3d0070beda0668b7aaf269ebd7ca
parent2d8aa1d2fff149223d7e30ba23d73e6da4738f8c
When running on Windows, hide the Engine dialog before calling 'push_state_to_backend()'

For some reason we don't understand 'push_state_to_backend()' can interfere with hiding the dialog (causing a partially hidden dialog to remain on screen). It's most likely a timing issue with the Windows version of GTK. Fortunately, reversing the calling order seems to fix it - BUT...

If there's no session loaded yet, the user can be left with a very long wait while nothing seems to be happening. The next thing the user would normally see would be the splash image. So let's display it slightly early (so the user can at least see that something's happening).

Sadly, it's all very kludgy - but a lot better than what we had before...  :)
gtk2_ardour/engine_dialog.cc