gimp r24807 - in branches/gimp-2-4: . app/dialogs



Author: neo
Date: Tue Feb  5 10:33:49 2008
New Revision: 24807
URL: http://svn.gnome.org/viewvc/gimp?rev=24807&view=rev

Log:
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.


Modified:
   branches/gimp-2-4/ChangeLog
   branches/gimp-2-4/app/dialogs/image-new-dialog.c

Modified: branches/gimp-2-4/app/dialogs/image-new-dialog.c
==============================================================================
--- branches/gimp-2-4/app/dialogs/image-new-dialog.c	(original)
+++ branches/gimp-2-4/app/dialogs/image-new-dialog.c	Tue Feb  5 10:33:49 2008
@@ -333,14 +333,12 @@
 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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]