From 5f9a9aa3c921cfb04003438e84b8512c19e43dd5 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 5 Feb 2008 10:33:10 +0000 Subject: [PATCH] use the user context when creating the new image. Fixes bug #514082. 2008-02-05 Sven Neumann * 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 --- ChangeLog | 5 +++++ app/dialogs/image-new-dialog.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 99bf467dd4..7de07dfa64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-05 Sven Neumann + + * 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 * plug-ins/common/mail.c: simplified code and user interface by diff --git a/app/dialogs/image-new-dialog.c b/app/dialogs/image-new-dialog.c index 16379f05d3..d2122068ca 100644 --- a/app/dialogs/image-new-dialog.c +++ b/app/dialogs/image-new-dialog.c @@ -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); }