need to detach from the drawable or the tile cache won't be flushed (bug

2003-09-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c (create_image): need to detach from
	the drawable or the tile cache won't be flushed (bug #121788).
This commit is contained in:
Sven Neumann 2003-09-09 14:32:39 +00:00 committed by Sven Neumann
parent 56438a7b9b
commit 4189010d9e
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-09-09 Sven Neumann <sven@gimp.org>
* plug-ins/common/screenshot.c (create_image): need to detach from
the drawable or the tile cache won't be flushed (bug #121788).
2003-09-09 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-callbacks.c

View File

@ -341,7 +341,7 @@ create_image (const GdkPixbuf *pixbuf)
height = gdk_pixbuf_get_height (GDK_PIXBUF (pixbuf));
image = gimp_image_new (width, height, GIMP_RGB);
layer = gimp_layer_new (image, _("Background"),
layer = gimp_layer_new (image, _("Screen Shot"),
width, height,
GIMP_RGB_IMAGE, 100, GIMP_NORMAL_MODE);
@ -369,6 +369,8 @@ create_image (const GdkPixbuf *pixbuf)
status = gimp_progress_update ((i + 1.0) / height);
}
gimp_drawable_detach (drawable);
gimp_progress_update (1.0);
/* figure out the monitor resolution and set the image to it */
@ -465,7 +467,7 @@ shoot (void)
if (!screenshot)
{
g_message (_("Error obtaining screenshot"));
g_message (_("Error obtaining Screen Shot"));
return;
}