[gimp] Bug 795716 - Wavelet Decompose takes too long to group layers
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 795716 - Wavelet Decompose takes too long to group layers
- Date: Mon, 7 May 2018 07:04:11 +0000 (UTC)
commit 7540ce779d4d225859a51c77767cd6f7594b24bc
Author: Ell <ell_se yahoo com>
Date: Mon May 7 02:53:37 2018 -0400
Bug 795716 - Wavelet Decompose takes too long to group layers
Use gimp_image_{freeze,thaw}_layers(), added in the previous
commit, to suppress updates to the Layers dialog while constructing
the decomposed layers, which significantly speeds up the operation
if the dialog is mapped.
plug-ins/common/wavelet-decompose.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/wavelet-decompose.c b/plug-ins/common/wavelet-decompose.c
index a16b8e2..e9ee186 100644
--- a/plug-ins/common/wavelet-decompose.c
+++ b/plug-ins/common/wavelet-decompose.c
@@ -178,6 +178,8 @@ run (const gchar *name,
gimp_image_undo_group_start (image_id);
+ gimp_image_freeze_layers (image_id);
+
if (wavelet_params.create_group)
{
gint32 group_id = gimp_layer_group_new (image_id);
@@ -291,6 +293,8 @@ run (const gchar *name,
g_free (scale_ids);
+ gimp_image_thaw_layers (image_id);
+
gimp_image_undo_group_end (image_id);
gimp_progress_update (1.0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]