Commit d254eaf3 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

set the active image. Fixes bug #156942.

2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpimageeditor.c (gimp_image_editor_set_context):
	set the active image. Fixes bug #156942.
parent 1da778d0
2004-10-31 Sven Neumann <sven@gimp.org>
* app/widgets/gimpimageeditor.c (gimp_image_editor_set_context):
set the active image. Fixes bug #156942.
2004-10-31 Sven Neumann <sven@gimp.org>
* app/dialogs/user-install-dialog.c: started to work on migration of
......
......@@ -114,7 +114,7 @@ gimp_image_editor_set_context (GimpDocked *docked,
GimpContext *context)
{
GimpImageEditor *editor = GIMP_IMAGE_EDITOR (docked);
GimpImage *gimage = NULL;
GimpImage *image = NULL;
if (editor->context)
g_signal_handlers_disconnect_by_func (editor->context,
......@@ -124,11 +124,15 @@ gimp_image_editor_set_context (GimpDocked *docked,
editor->context = context;
if (context)
g_signal_connect_swapped (context, "image_changed",
G_CALLBACK (gimp_image_editor_set_image),
editor);
{
g_signal_connect_swapped (context, "image_changed",
G_CALLBACK (gimp_image_editor_set_image),
editor);
image = gimp_context_get_image (context);
}
gimp_image_editor_set_image (editor, gimage);
gimp_image_editor_set_image (editor, image);
}
static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment