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



commit 0cabc21c77a376b50ea319d3b4b64944ce0eb989
Author: Michael Natterer <mitch gimp org>
Date:   Mon Dec 28 13:12:25 2015 +0100

    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.

 app/core/gimpcurve.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/app/core/gimpcurve.c b/app/core/gimpcurve.c
index d611967..2db35ae 100644
--- a/app/core/gimpcurve.c
+++ b/app/core/gimpcurve.c
@@ -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));
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]