app: Restore docks in an idle handler

In single-window mode, gimp_session_managed_set_aux_info() will set
the size of the dock areas at the sides. If we don't wait for those
areas to get their size-allocation, we can't properly restore the
docks inside them, so do that in an idle callback.

Also add a required call to gimp_test_run_mainloop_until_idle()
because of this in the 'automatic_tab_style' test.
This commit is contained in:
Martin Nordholts
2011-06-14 22:37:00 +02:00
parent 00d6f8e655
commit e74d220930
2 changed files with 95 additions and 50 deletions

View File

@ -187,6 +187,8 @@ automatic_tab_style (GimpTestFixture *fixture,
dockable = GIMP_DOCKABLE (channel_dockable);
gimp_test_run_mainloop_until_idle ();
/* The channel dockable is the only dockable, it has enough space
* for the icon-blurb
*/