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:
@ -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;
|
||||
|
Reference in New Issue
Block a user