mirror of https://github.com/GNOME/gimp.git
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:
parent
bc9602c410
commit
ccdab9e4cd
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue