diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-16 21:39:31 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-16 21:39:31 +0200 |
| commit | c7d7fbb650c8ff7c0e52c95723e1e65e295d55cf (patch) | |
| tree | 42c752f0ca0e446d44e0de23ed382cbf94f42ae6 /python/opprogress.cc | |
| parent | 7f861d478db844037d14aeb423eaab88a0a47716 (diff) | |
| download | python-apt-c7d7fbb650c8ff7c0e52c95723e1e65e295d55cf.tar.gz | |
python/progress.cc: Set members directly, without using Python.
Diffstat (limited to 'python/opprogress.cc')
| -rw-r--r-- | python/opprogress.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/opprogress.cc b/python/opprogress.cc index d3738904..2ee6a03e 100644 --- a/python/opprogress.cc +++ b/python/opprogress.cc @@ -88,8 +88,13 @@ static PyMethodDef opprogress_methods[] = { {NULL}, }; +#ifndef T_BOOL +# define _T_BOOL T_INT +#else +# define _T_BOOL T_BOOL +#endif static PyMemberDef opprogress_members[] = { - {"major_change", T_INT, offsetof(PyOpProgressObject, major_change), 0, + {"major_change", _T_BOOL, offsetof(PyOpProgressObject, major_change), 0, "Boolean value indicating whether the change is a major change."}, {"percent", T_FLOAT, offsetof(PyOpProgressObject, percent), 0, "Percentage of completion (float value)."}, |
