Merged from trunk:

2008-02-05  Sven Neumann  <sven@gimp.org>

	Merged from trunk:

	* app/dialogs/image-new-dialog.c (image_new_create_image):
	use the user context when creating the new image. Fixes bug #514082.

svn path=/branches/gimp-2-4/; revision=24807
This commit is contained in:
Sven Neumann 2008-02-05 10:33:49 +00:00 committed by Sven Neumann
parent c988ac9534
commit 9becee4c0a
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2008-02-05 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/dialogs/image-new-dialog.c (image_new_create_image):
use the user context when creating the new image. Fixes bug #514082.
2008-02-05 Sven Neumann <sven@gimp.org>
Merged from trunk:

View File

@ -333,14 +333,12 @@ static void
image_new_create_image (ImageNewDialog *dialog)
{
GimpTemplate *template = g_object_ref (dialog->template);
GimpContext *context = g_object_ref (dialog->context);
Gimp *gimp = dialog->context->gimp;
gtk_widget_destroy (dialog->dialog);
gimp_template_create_image (gimp, template, context);
gimp_template_create_image (gimp, template, gimp_get_user_context (gimp));
gimp_image_new_set_last_template (gimp, template);
g_object_unref (template);
g_object_unref (context);
}