Commit 0cabc21c authored by Michael Natterer's avatar Michael Natterer 😴

app: remove some useless g_object_freeze/thaw_notify() from gimpcurve.c

We only need that when more than one property changes and we must
delay notification until the object is in a consistent state.
parent 0c798520
......@@ -770,15 +770,11 @@ gimp_curve_set_point (GimpCurve *curve,
if (curve->curve_type == GIMP_CURVE_FREE)
return;
g_object_freeze_notify (G_OBJECT (curve));
curve->points[point].x = x;
curve->points[point].y = y;
g_object_notify (G_OBJECT (curve), "points");
g_object_thaw_notify (G_OBJECT (curve));
gimp_data_dirty (GIMP_DATA (curve));
}
......@@ -794,14 +790,10 @@ gimp_curve_move_point (GimpCurve *curve,
if (curve->curve_type == GIMP_CURVE_FREE)
return;
g_object_freeze_notify (G_OBJECT (curve));
curve->points[point].y = y;
g_object_notify (G_OBJECT (curve), "points");
g_object_thaw_notify (G_OBJECT (curve));
gimp_data_dirty (GIMP_DATA (curve));
}
......@@ -866,14 +858,10 @@ gimp_curve_set_curve (GimpCurve *curve,
if (curve->curve_type == GIMP_CURVE_SMOOTH)
return;
g_object_freeze_notify (G_OBJECT (curve));
curve->samples[ROUND (x * (gdouble) (curve->n_samples - 1))] = y;
g_object_notify (G_OBJECT (curve), "samples");
g_object_thaw_notify (G_OBJECT (curve));
gimp_data_dirty (GIMP_DATA (curve));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment