X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=giscanner%2Fgiscannermodule.c;fp=giscanner%2Fgiscannermodule.c;h=2d2e073e0d2611b7a62fb37f8b021c4aa239c620;hb=1923e07dcd4b8d85006369e34ccd1d949a5ab2a1;hp=0b24714a703fdaf7131c74639f29faaa0b4736a2;hpb=eef3fb6c067e2a35dba47462aa06ed4f74d87fab;p=gnome.gobject-introspection diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c index 0b24714..2d2e073 100644 --- a/giscanner/giscannermodule.c +++ b/giscanner/giscannermodule.c @@ -111,6 +111,13 @@ symbol_get_type (PyGISourceSymbol *self, return PyInt_FromLong (self->symbol->type); } +static PyObject * +symbol_get_line (PyGISourceSymbol *self, + void *context) +{ + return PyInt_FromLong (self->symbol->line); +} + static PyObject * symbol_get_ident (PyGISourceSymbol *self, void *context) @@ -194,6 +201,7 @@ static const PyGetSetDef _PyGISourceSymbol_getsets[] = { { "const_double", (getter)symbol_get_const_double, NULL, NULL}, { "const_string", (getter)symbol_get_const_string, NULL, NULL}, { "source_filename", (getter)symbol_get_source_filename, NULL, NULL}, + { "line", (getter)symbol_get_line, NULL, NULL}, { 0 } };