use the user context when creating the new image. Fixes bug #514082.

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

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

svn path=/trunk/; revision=24806
This commit is contained in:
Sven Neumann
2008-02-05 10:33:10 +00:00
committed by Sven Neumann
parent 91774c8ce1
commit 5f9a9aa3c9
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-02-05 Sven Neumann <sven@gimp.org>
* 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>
* plug-ins/common/mail.c: simplified code and user interface by

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);
}