add back code that made sure the newly created display/image combo is the

2008-03-20  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui-vtable.c (gui_display_create): add back code that
	made sure the newly created display/image combo is the user
	context's active one.


svn path=/trunk/; revision=25148
This commit is contained in:
Michael Natterer 2008-03-20 21:07:09 +00:00 committed by Michael Natterer
parent 667abcec21
commit 3ed8ea38cd
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-03-20 Michael Natterer <mitch@gimp.org>
* app/gui/gui-vtable.c (gui_display_create): add back code that
made sure the newly created display/image combo is the user
context's active one.
2008-03-20 Martin Nordholts <martinn@svn.gnome.org>
* app/display/gimpdisplayshell-close.c

View File

@ -303,7 +303,15 @@ gui_display_create (Gimp *gimp,
image_managers->data);
}
gimp_context_set_display (context, display);
if (gimp_context_get_display (context) == display)
{
gimp_context_set_image (context, image);
gimp_context_display_changed (context);
}
else
{
gimp_context_set_display (context, display);
}
gimp_ui_manager_update (GIMP_DISPLAY_SHELL (display->shell)->menubar_manager,
display);