Make updagin the image window's ui manager more sane

(gimp_image_window_image_notify): update the ui manager unconditionally
(both when a display is emptied *and* filled)

(gui_display_create): remove updating code here. It was not belonging
here anyway and the image window does the right thing now.
This commit is contained in:
Michael Natterer 2009-09-30 00:00:36 +02:00
parent bc9602c410
commit ccdab9e4cd
2 changed files with 2 additions and 10 deletions

View File

@ -1006,8 +1006,9 @@ gimp_image_window_image_notify (GimpDisplay *display,
gtk_window_unmaximize (GTK_WINDOW (window));
gtk_window_resize (GTK_WINDOW (window), width, height);
gimp_ui_manager_update (private->menubar_manager, display);
}
gimp_ui_manager_update (private->menubar_manager, display);
}
static void

View File

@ -357,15 +357,6 @@ gui_display_create (Gimp *gimp,
gimp_context_set_display (context, display);
}
/* FIXME image window: do this elsewhere */
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
GimpImageWindow *window = gimp_display_shell_get_window (shell);
GimpUIManager *manager = gimp_image_window_get_ui_manager (window);
gimp_ui_manager_update (manager, display);
}
return GIMP_OBJECT (display);
}