[gnumeric] python: add recalc method.



commit 7520b728287ee7d0962515b9089d66e802516bd9
Author: Morten Welinder <terra gnome org>
Date:   Thu Dec 29 18:43:01 2016 -0500

    python: add recalc method.
    
    See bug 775534.

 plugins/python-loader/py-gnumeric.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/python-loader/py-gnumeric.c b/plugins/python-loader/py-gnumeric.c
index feea080..d3ea799 100644
--- a/plugins/python-loader/py-gnumeric.c
+++ b/plugins/python-loader/py-gnumeric.c
@@ -1752,6 +1752,13 @@ py_Workbook_gui_add (py_Workbook_object *self, PyObject *args)
 }
 
 static PyObject *
+py_Workbook_recalc (py_Workbook_object *self, PyObject *args)
+{
+       workbook_recalc(self->wb);
+       Py_RETURN_NONE;
+}
+
+static PyObject *
 py_Workbook_object_getattr (py_Workbook_object *self, gchar *name)
 {
        static struct PyMethodDef methods [] = {
@@ -1761,6 +1768,8 @@ py_Workbook_object_getattr (py_Workbook_object *self, gchar *name)
                 METH_VARARGS},
                { (char *) "gui_add",   (PyCFunction) py_Workbook_gui_add,
                 METH_VARARGS},
+               { (char *) "recalc",    (PyCFunction) py_Workbook_recalc,
+                METH_VARARGS},
                {NULL, NULL}
        };
        return Py_FindMethod (methods, (PyObject *) self, name);


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