From 3ed8ea38cd42b8f37eddfe19f6148cc8210855be Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 20 Mar 2008 21:07:09 +0000 Subject: [PATCH] add back code that made sure the newly created display/image combo is the 2008-03-20 Michael Natterer * 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 --- ChangeLog | 6 ++++++ app/gui/gui-vtable.c | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a76344ff1f..5cc05e99eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-20 Michael Natterer + + * 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 * app/display/gimpdisplayshell-close.c diff --git a/app/gui/gui-vtable.c b/app/gui/gui-vtable.c index 16ee7358bc..3b06a26c16 100644 --- a/app/gui/gui-vtable.c +++ b/app/gui/gui-vtable.c @@ -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);