[gimp] app: rename GimpMaskUndo::convert-precision to ::convert-format



commit f057aa7932b894ec0e5493d5f9e039b1ae1cefb0
Author: Michael Natterer <mitch gimp org>
Date:   Sat Apr 28 19:15:47 2012 +0200

    app: rename GimpMaskUndo::convert-precision to ::convert-format

 app/core/gimpimage-undo-push.c |    4 ++--
 app/core/gimpmaskundo.c        |   16 ++++++++--------
 app/core/gimpmaskundo.h        |    2 +-
 3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/app/core/gimpimage-undo-push.c b/app/core/gimpimage-undo-push.c
index a7aa422..b99046c 100644
--- a/app/core/gimpimage-undo-push.c
+++ b/app/core/gimpimage-undo-push.c
@@ -300,8 +300,8 @@ gimp_image_undo_push_mask_precision (GimpImage   *image,
                                GIMP_IS_SELECTION (mask) ?
                                GIMP_DIRTY_SELECTION :
                                GIMP_DIRTY_ITEM | GIMP_DIRTY_DRAWABLE,
-                               "item",              mask,
-                               "convert-precision", TRUE,
+                               "item",           mask,
+                               "convert-format", TRUE,
                                NULL);
 }
 
diff --git a/app/core/gimpmaskundo.c b/app/core/gimpmaskundo.c
index f673240..e0607c7 100644
--- a/app/core/gimpmaskundo.c
+++ b/app/core/gimpmaskundo.c
@@ -31,7 +31,7 @@
 enum
 {
   PROP_0,
-  PROP_CONVERT_PRECISION
+  PROP_CONVERT_FORMAT
 };
 
 
@@ -76,8 +76,8 @@ gimp_mask_undo_class_init (GimpMaskUndoClass *klass)
   undo_class->pop                = gimp_mask_undo_pop;
   undo_class->free               = gimp_mask_undo_free;
 
-  g_object_class_install_property (object_class, PROP_CONVERT_PRECISION,
-                                   g_param_spec_boolean ("convert-precision",
+  g_object_class_install_property (object_class, PROP_CONVERT_FORMAT,
+                                   g_param_spec_boolean ("convert-format",
                                                          NULL, NULL,
                                                          FALSE,
                                                          GIMP_PARAM_READWRITE |
@@ -133,8 +133,8 @@ gimp_mask_undo_set_property (GObject      *object,
 
   switch (property_id)
     {
-    case PROP_CONVERT_PRECISION:
-      mask_undo->convert_precision = g_value_get_boolean (value);
+    case PROP_CONVERT_FORMAT:
+      mask_undo->convert_format = g_value_get_boolean (value);
       break;
 
     default:
@@ -153,8 +153,8 @@ gimp_mask_undo_get_property (GObject    *object,
 
   switch (property_id)
     {
-    case PROP_CONVERT_PRECISION:
-      g_value_set_boolean (value, mask_undo->convert_precision);
+    case PROP_CONVERT_FORMAT:
+      g_value_set_boolean (value, mask_undo->convert_format);
       break;
 
     default:
@@ -212,7 +212,7 @@ gimp_mask_undo_pop (GimpUndo            *undo,
 
   format = gimp_drawable_get_format (drawable);
 
-  if (mask_undo->convert_precision)
+  if (mask_undo->convert_format)
     {
       GeglBuffer *buffer;
       gint        width  = gimp_item_get_width  (GIMP_ITEM (channel));
diff --git a/app/core/gimpmaskundo.h b/app/core/gimpmaskundo.h
index ae39550..f34b9f7 100644
--- a/app/core/gimpmaskundo.h
+++ b/app/core/gimpmaskundo.h
@@ -36,7 +36,7 @@ struct _GimpMaskUndo
 {
   GimpItemUndo  parent_instance;
 
-  gboolean      convert_precision;
+  gboolean      convert_format;
 
   GeglBuffer   *buffer;
   gint          x;



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