Issue #3353 - Gimp 2.10.10 freezes while changing Background color ...

... in LCh colorspace

In gimptoolbox-color-area, when setting the context's background
color in response to a color-dialog change, block the right signal
handler, to avoid re-setting the color dialog's color, which would
cause the GtkAdjustment's "value-changed" signal (assuming it was
the source of the change) to be restarted if the new value doesn't
match the current one exactly, which can happen due to conversion
errors.

(cherry picked from commit c7a29e5f98)
This commit is contained in:
Ell
2019-05-08 03:32:39 -04:00
parent 7b1af1f0cb
commit 2d91f1ca02

View File

@ -179,13 +179,13 @@ color_area_dialog_update (GimpColorDialog *dialog,
else
{
g_signal_handlers_block_by_func (context,
color_area_foreground_changed,
color_area_background_changed,
dialog);
gimp_context_set_background (context, color);
g_signal_handlers_unblock_by_func (context,
color_area_foreground_changed,
color_area_background_changed,
dialog);
}
break;