Move the window part of gimp_display_shell_fill() to GimpImageWindow

This commit is contained in:
Michael Natterer 2009-09-25 02:03:30 +02:00
parent 4cc8f8e6f8
commit 9c5e44c566
2 changed files with 6 additions and 6 deletions

View File

@ -1353,16 +1353,10 @@ gimp_display_shell_fill (GimpDisplayShell *shell,
g_return_if_fail (GIMP_IS_DISPLAY (shell->display));
g_return_if_fail (GIMP_IS_IMAGE (image));
gimp_dialog_factory_remove_dialog (shell->display_factory,
GTK_WIDGET (shell));
gimp_display_shell_set_unit (shell, unit);
gimp_display_shell_set_initial_scale (shell, scale, NULL, NULL);
gimp_display_shell_scale_changed (shell);
/* FIXME image window */
gimp_statusbar_fill (GIMP_STATUSBAR (GIMP_IMAGE_WINDOW (shell)->statusbar));
gimp_display_shell_sync_config (shell, shell->display->config);
gimp_display_shell_appearance_update (shell);

View File

@ -510,6 +510,12 @@ gimp_image_window_image_notify (GimpDisplay *display,
{
if (display->image)
{
/* FIXME don't run this code for revert */
gimp_dialog_factory_remove_dialog (window->display_factory,
GTK_WIDGET (window));
gimp_statusbar_fill (GIMP_STATUSBAR (window->statusbar));
}
else
{