[gimp] pygimp: add 'precision' property to Image



commit d965c7cab231138e24480282ab578aa87a58f785
Author: Joao S. O. Bueno <gwidion gmail com>
Date:   Fri Feb 20 10:04:09 2015 -0200

    pygimp: add 'precision' property to Image

 plug-ins/pygimp/pygimp-image.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/pygimp/pygimp-image.c b/plug-ins/pygimp/pygimp-image.c
index f7784a5..dbd9a91 100644
--- a/plug-ins/pygimp/pygimp-image.c
+++ b/plug-ins/pygimp/pygimp-image.c
@@ -1287,6 +1287,13 @@ img_get_width(PyGimpImage *self, void *closure)
     return PyInt_FromLong(gimp_image_width(self->ID));
 }
 
+
+static PyObject *
+img_get_precision(PyGimpImage *self, void *closure)
+{
+    return PyInt_FromLong(gimp_image_get_precision(self->ID));
+}
+
 static PyObject *
 img_get_resolution(PyGimpImage *self, void *closure)
 {
@@ -1428,6 +1435,7 @@ static PyGetSetDef img_getsets[] = {
     { "height", (getter)img_get_height, (setter)0 },
     { "layers", (getter)img_get_layers, (setter)0 },
     { "name", (getter)img_get_name, (setter)0 },
+    { "precision", (getter)img_get_precision, (setter)0 },
     { "resolution", (getter)img_get_resolution, (setter)img_set_resolution },
     { "selection", (getter)img_get_selection, (setter)0 },
     { "tattoo_state", (getter)img_get_tattoo_state,


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