Tomeu Vizoso [Mon, 15 Aug 2011 15:45:09 +0000 (17:45 +0200)]
giscanner: Allow passing additional include dirs when parsing a gir
Tomeu Vizoso [Mon, 15 Aug 2011 14:54:13 +0000 (16:54 +0200)]
tests/doctools: Properly clean the temporary mallard files
Tomeu Vizoso [Mon, 15 Aug 2011 14:44:14 +0000 (16:44 +0200)]
tests/doctool: Update the -expected dirs
Tomeu Vizoso [Mon, 15 Aug 2011 14:34:23 +0000 (16:34 +0200)]
tests/doctool: Make sure we regenerate the mallard code when testing
John (J5) Palmieri [Mon, 15 Aug 2011 14:41:50 +0000 (10:41 -0400)]
[doctools] use 'or' instead of 'and' when checking for func or constructor
John (J5) Palmieri [Mon, 15 Aug 2011 14:33:06 +0000 (10:33 -0400)]
treat constructors like methods when generating the label
John (J5) Palmieri [Mon, 15 Aug 2011 14:19:41 +0000 (10:19 -0400)]
[doctool] use different templates for method vs. function output
Tomeu Vizoso [Mon, 15 Aug 2011 14:01:18 +0000 (16:01 +0200)]
configure.ac: Change to tar-ustar because PAX gives problems in OpenBSD
Also, it's what other GNOME modules use
Tomeu Vizoso [Mon, 15 Aug 2011 13:52:04 +0000 (15:52 +0200)]
tests/doctool: Better way of copying the .gir
Tomeu Vizoso [Mon, 15 Aug 2011 13:50:45 +0000 (15:50 +0200)]
configure.ac: Add tar-pax to AM_INIT_AUTOMAKE
John (J5) Palmieri [Mon, 15 Aug 2011 13:27:05 +0000 (09:27 -0400)]
output namespace.class.methodname for python methods in the doctools
Tomeu Vizoso [Mon, 15 Aug 2011 12:52:52 +0000 (14:52 +0200)]
tests/doctool: Compare -expected directories instead of single files
John (J5) Palmieri [Mon, 15 Aug 2011 12:19:29 +0000 (08:19 -0400)]
fix up Python doc backend to output correct names
Tomeu Vizoso [Mon, 15 Aug 2011 12:04:03 +0000 (14:04 +0200)]
tests/doctool: Switch to test the mallard formatter
John (J5) Palmieri [Mon, 15 Aug 2011 12:01:43 +0000 (08:01 -0400)]
first pass at python backend for doc tools
Tomeu Vizoso [Mon, 15 Aug 2011 10:00:38 +0000 (12:00 +0200)]
tests/doctool: Add the right -expected files to dist
Tomeu Vizoso [Mon, 15 Aug 2011 09:51:09 +0000 (11:51 +0200)]
tests/doctool: Update expected files
Tomeu Vizoso [Mon, 15 Aug 2011 09:47:13 +0000 (11:47 +0200)]
g-ir-doc-tool: Fix PEP-8 issues
Tomeu Vizoso [Sun, 14 Aug 2011 14:21:57 +0000 (16:21 +0200)]
g-ir-doc-tool: print class declaration line in Python
Shaun McCance [Sun, 14 Aug 2011 14:16:35 +0000 (10:16 -0400)]
giscanner/mallardwriter: Adding experimental Mallard output to g-ir-doc-tool
Tomeu Vizoso [Sun, 14 Aug 2011 13:15:31 +0000 (15:15 +0200)]
g-ir-doc-tool: Use namespace.class for Python
Tomeu Vizoso [Sun, 14 Aug 2011 12:24:31 +0000 (14:24 +0200)]
g-ir-doc-tool: Ignore for now properties with no known type
Tomeu Vizoso [Sun, 14 Aug 2011 12:17:33 +0000 (14:17 +0200)]
g-ir-doc-tool: Use the array type when rendering [element-type]
Tomeu Vizoso [Sun, 14 Aug 2011 09:10:14 +0000 (11:10 +0200)]
g-ir-doc-tool: Add -expected test for Python docbook
Tomeu Vizoso [Mon, 15 Aug 2011 09:34:20 +0000 (11:34 +0200)]
g-ir-scanner: Stop going up the hierarchy once we reach GObject
Tomeu Vizoso [Mon, 15 Aug 2011 09:32:07 +0000 (11:32 +0200)]
Make sure we have UNINSTALLED_INTROSPECTION_SRCDIR when running tests
Colin Walters [Mon, 15 Aug 2011 08:22:01 +0000 (04:22 -0400)]
Regress-1.0-expected: Update for previous change
Colin Walters [Sun, 14 Aug 2011 09:42:53 +0000 (05:42 -0400)]
annotationparser: Don't eat lines that look like parameters outside param list
If we're done parsing parameters, previously we would simply eat lines that looked like
@foo: blah blah
Example is in gtkcssprovider.c.
https://bugzilla.gnome.org/show_bug.cgi?id=656504
Torsten Schönfeld [Sat, 13 Aug 2011 14:32:48 +0000 (16:32 +0200)]
Recognize constructors ending in 'newv'
Like gtk_list_store_newv and gtk_tree_store_newv.
https://bugzilla.gnome.org/show_bug.cgi?id=656460
Johan Dahlin [Sat, 13 Aug 2011 17:42:05 +0000 (14:42 -0300)]
Merge remote-tracking branch 'origin/gir-docbook'
Conflicts:
.gitignore
tests/scanner/Regress-1.0-expected.gir
Johan Dahlin [Sat, 13 Aug 2011 17:36:53 +0000 (14:36 -0300)]
Try harder to preserve c:type
When we replace a type using annotation we should keep
the ctype of the original type.
Johan Dahlin [Sat, 13 Aug 2011 15:45:12 +0000 (12:45 -0300)]
Make sure signal works when there isn't one specified
Johan Dahlin [Sat, 13 Aug 2011 15:45:12 +0000 (12:45 -0300)]
Make sure signal works when there isn't one specified
Tomeu Vizoso [Sat, 13 Aug 2011 15:33:46 +0000 (17:33 +0200)]
g-ir-doc-tool: Add support for varargs
Tomeu Vizoso [Sat, 13 Aug 2011 14:40:54 +0000 (16:40 +0200)]
tests/doctool: Updated -expected to match the code in the repo
Johan Dahlin [Sat, 13 Aug 2011 14:21:05 +0000 (11:21 -0300)]
Add signal flags
This adds all GSignalFlags into the gir.
https://bugzilla.gnome.org/show_bug.cgi?id=656457
Johan Dahlin [Sat, 13 Aug 2011 14:15:32 +0000 (11:15 -0300)]
Update gitignore
Tomeu Vizoso [Sat, 13 Aug 2011 14:13:41 +0000 (16:13 +0200)]
g-ir-doc-tool: Add alias elements (typedef)
Johan Dahlin [Sat, 13 Aug 2011 13:35:13 +0000 (10:35 -0300)]
Add signal flags
This adds all GSignalFlags into the gir.
https://bugzilla.gnome.org/show_bug.cgi?id=656457
Colin Walters [Sat, 13 Aug 2011 13:35:10 +0000 (09:35 -0400)]
annotationparser: Only accept certain tags
Previously we were eating any line form "* [A-Za-z]: " as a tag,
but this is a problem since e.g. gtk/gtk/gtkcssprovder.c had literal
CSS e.g. block: which erroneously matched.
Fix this by only accepting particular tags, similar to what gtk-doc
does (although we accept a superset, e.g. transfer too).
https://bugzilla.gnome.org/show_bug.cgi?id=656458
Johan Dahlin [Sat, 13 Aug 2011 13:35:08 +0000 (10:35 -0300)]
Update gitignore
John (J5) Palmieri [Sat, 13 Aug 2011 13:18:18 +0000 (09:18 -0400)]
remove the flat struct array test and replace with object pointer array test
Johan Dahlin [Sat, 13 Aug 2011 13:11:15 +0000 (10:11 -0300)]
Update expected after rebase
Johan Dahlin [Sat, 13 Aug 2011 13:06:49 +0000 (10:06 -0300)]
Move doctool over to common.mk
Johan Dahlin [Sat, 13 Aug 2011 13:00:02 +0000 (10:00 -0300)]
Update .gitignore
Torsten Schönfeld [Sat, 13 Aug 2011 10:45:14 +0000 (12:45 +0200)]
scanner: add a moved_to property to backcompat functions
Use it to remove backcompat copies of functions that non introspectable
anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=572408
Torsten Schönfeld [Sat, 13 Aug 2011 10:00:00 +0000 (12:00 +0200)]
scanner: handle static methods on all types
Instead of just handling static methods for classes, handle them for:
- Records and boxed
- Unions
- Interfaces
Based on a patch by Owen Taylor.
https://bugzilla.gnome.org/show_bug.cgi?id=572408
Johan Dahlin [Sat, 13 Aug 2011 12:39:47 +0000 (09:39 -0300)]
Avoid broken emacs syntax highlightning
Colin Walters [Fri, 12 Aug 2011 10:01:56 +0000 (06:01 -0400)]
scanner: Don't throw away blank lines in the docs
For generating documentation, we actually want to preserve these.
https://bugzilla.gnome.org/show_bug.cgi?id=656389
Dan Winship [Thu, 19 May 2011 21:46:36 +0000 (17:46 -0400)]
Add g_irepository_find_by_error_domain()
Add a method to look up a GIEnumInfo given its associated error quark.
Based on a patch from Colin Walters.
https://bugzilla.gnome.org/show_bug.cgi?id=602516
Dan Winship [Thu, 19 May 2011 20:21:13 +0000 (16:21 -0400)]
Switch to storing string form of error quarks
Instead of storing the name of the function to call to get the
error quark, store the string form of the error quark, which
we derive from the introspection binary during scanning.
Update EnumBlob and GIEnumInfo to include the new information.
This will allow determining a back-mapping from error quark
to error domain without having to dlsym() and call all the
known error quark functions.
Based on earlier patches from Owen Taylor and Maxim Ermilov.
https://bugzilla.gnome.org/show_bug.cgi?id=602516
Dan Winship [Thu, 19 May 2011 20:12:03 +0000 (16:12 -0400)]
Deprecate ErrorDomain
The previous ErrorDomain blob was never actually scanned or used, and
it was kind of a lame API conceptually.
To keep some compatibility, rather than removing the enumeration
values, rename them to _INVALID, and don't bump the typelib version.
This should in theory allow a new libgirepository to read an old
typelib.
Based on a patch from Colin Walters
https://bugzilla.gnome.org/show_bug.cgi?id=602516
Dan Winship [Fri, 12 Aug 2011 15:10:06 +0000 (11:10 -0400)]
girepository: fix some doc comment syntax
Martin Pitt [Fri, 12 Aug 2011 07:57:41 +0000 (09:57 +0200)]
Add Regress method for a closure taking and returning a GVariant
Pavel Holejsovsky [Tue, 2 Aug 2011 05:41:54 +0000 (07:41 +0200)]
Automatically turn Gdk.Rectangle gtype into cairo.RectangleInt
Gdk.Rectangle is 'boxed alias', which is not currently weel supported
by g-i. Work around by transforming Gdk.Rectangle gtype into
cairo.RectangleInt.
https://bugzilla.gnome.org/show_bug.cgi?id=655423
Tomeu Vizoso [Sat, 13 Aug 2011 12:31:10 +0000 (14:31 +0200)]
g-ir-doc-tool: Add structs (no fields yet) and thus fix arguments links
Tomeu Vizoso [Sat, 13 Aug 2011 09:58:18 +0000 (11:58 +0200)]
g-ir-doc-tool: Use same link ids as gtk-doc-mkdb does
Tomeu Vizoso [Sat, 13 Aug 2011 09:12:01 +0000 (11:12 +0200)]
g-ir-doc-tool: Move out the * from the return value link
Tomeu Vizoso [Sat, 13 Aug 2011 08:43:39 +0000 (10:43 +0200)]
g-ir-doc-tool: Move the * out the type link
Colin Walters [Fri, 12 Aug 2011 10:01:56 +0000 (06:01 -0400)]
scanner: Don't throw away blank lines in the docs
For generating documentation, we actually want to preserve these.
https://bugzilla.gnome.org/show_bug.cgi?id=656389
Tomeu Vizoso [Fri, 12 Aug 2011 15:16:35 +0000 (17:16 +0200)]
g-ir-doctool: Add annotations (some)
Dan Winship [Thu, 19 May 2011 21:46:36 +0000 (17:46 -0400)]
Add g_irepository_find_by_error_domain()
Add a method to look up a GIEnumInfo given its associated error quark.
Based on a patch from Colin Walters.
https://bugzilla.gnome.org/show_bug.cgi?id=602516
Dan Winship [Thu, 19 May 2011 20:21:13 +0000 (16:21 -0400)]
Switch to storing string form of error quarks
Instead of storing the name of the function to call to get the
error quark, store the string form of the error quark, which
we derive from the introspection binary during scanning.
Update EnumBlob and GIEnumInfo to include the new information.
This will allow determining a back-mapping from error quark
to error domain without having to dlsym() and call all the
known error quark functions.
Based on earlier patches from Owen Taylor and Maxim Ermilov.
https://bugzilla.gnome.org/show_bug.cgi?id=602516
Dan Winship [Thu, 19 May 2011 20:12:03 +0000 (16:12 -0400)]
Deprecate ErrorDomain
The previous ErrorDomain blob was never actually scanned or used, and
it was kind of a lame API conceptually.
To keep some compatibility, rather than removing the enumeration
values, rename them to _INVALID, and don't bump the typelib version.
This should in theory allow a new libgirepository to read an old
typelib.
Based on a patch from Colin Walters
https://bugzilla.gnome.org/show_bug.cgi?id=602516
Dan Winship [Fri, 12 Aug 2011 15:10:06 +0000 (11:10 -0400)]
girepository: fix some doc comment syntax
Tomeu Vizoso [Fri, 12 Aug 2011 13:19:36 +0000 (15:19 +0200)]
g-ir-doc-tool: Generate parameter list in the detail
Tomeu Vizoso [Fri, 12 Aug 2011 08:52:01 +0000 (10:52 +0200)]
tests/doctool: use GIRepository gir instead of Regress
Martin Pitt [Fri, 12 Aug 2011 07:57:41 +0000 (09:57 +0200)]
Add Regress method for a closure taking and returning a GVariant
Tomeu Vizoso [Thu, 11 Aug 2011 16:43:11 +0000 (18:43 +0200)]
g-ir-doc-tool: Add DOCTYPE
Tomeu Vizoso [Thu, 11 Aug 2011 15:25:21 +0000 (17:25 +0200)]
tests/doctool: Sync -expected.xml
Laszlo Pandy [Thu, 11 Aug 2011 15:14:26 +0000 (17:14 +0200)]
[docbook] Print out element types of arrays, lists and hashtables.
Tomeu Vizoso [Thu, 11 Aug 2011 14:51:37 +0000 (16:51 +0200)]
tests/doctool: Add an echo while building the docbook
Tomeu Vizoso [Thu, 11 Aug 2011 14:50:33 +0000 (16:50 +0200)]
g-ir-doc-tool: Generate a <refentry> element at the top of chapters
Tomeu Vizoso [Thu, 11 Aug 2011 13:47:41 +0000 (15:47 +0200)]
g-ir-doctool: Fix a PEP-8 issue
Tomeu Vizoso [Thu, 11 Aug 2011 13:46:31 +0000 (15:46 +0200)]
Add a way to check for unintended effects of changes in g-ir-doctool
Laszlo Pandy [Thu, 11 Aug 2011 14:30:03 +0000 (16:30 +0200)]
[doctool] Add local object hierarchy and stubs for props and signal details.
Pavel Holejsovsky [Tue, 2 Aug 2011 05:41:54 +0000 (07:41 +0200)]
Automatically turn Gdk.Rectangle gtype into cairo.RectangleInt
Gdk.Rectangle is 'boxed alias', which is not currently weel supported
by g-i. Work around by transforming Gdk.Rectangle gtype into
cairo.RectangleInt.
https://bugzilla.gnome.org/show_bug.cgi?id=655423
Laszlo Pandy [Thu, 11 Aug 2011 13:36:23 +0000 (15:36 +0200)]
[docbook] Allow formatter to change page name.
Laszlo Pandy [Thu, 11 Aug 2011 13:04:25 +0000 (15:04 +0200)]
[docbook] use C symbol for function title.
Laszlo Pandy [Thu, 11 Aug 2011 12:46:56 +0000 (14:46 +0200)]
[docbook] add signals section
Johan Dahlin [Thu, 11 Aug 2011 11:50:25 +0000 (21:50 +1000)]
Use a classmethod and s/Transformer/cls/ + s/transformer/self/
Laszlo Pandy [Thu, 11 Aug 2011 10:38:25 +0000 (12:38 +0200)]
[docbook] Add properties section.
Laszlo Pandy [Thu, 11 Aug 2011 09:57:10 +0000 (11:57 +0200)]
[docbook] Entity -> method
Laszlo Pandy [Thu, 11 Aug 2011 09:51:50 +0000 (11:51 +0200)]
[docbook] Add Properties section
Laszlo Pandy [Thu, 11 Aug 2011 09:38:41 +0000 (11:38 +0200)]
[docbook] Add "Details" title above all methods.
Laszlo Pandy [Thu, 11 Aug 2011 09:27:11 +0000 (11:27 +0200)]
[docbook] only show Class Record and Interface at the top level
Laszlo Pandy [Thu, 11 Aug 2011 08:57:14 +0000 (10:57 +0200)]
[docbook] Make DocBookWriter use Transformer
Laszlo Pandy [Thu, 11 Aug 2011 08:53:57 +0000 (10:53 +0200)]
[docbook] remove namespace page. There is nothing in it.
Tomeu Vizoso [Thu, 11 Aug 2011 09:59:45 +0000 (11:59 +0200)]
g-ir-doctool: Don't render the * in link targets
Laszlo Pandy [Thu, 11 Aug 2011 08:21:41 +0000 (10:21 +0200)]
[docbook] fix exception when there is no ctype.
Johan Dahlin [Tue, 1 Feb 2011 18:12:30 +0000 (16:12 -0200)]
WIP doctool
https://bugzilla.gnome.org/show_bug.cgi?id=625494
Stef Walter [Wed, 10 Aug 2011 13:04:55 +0000 (15:04 +0200)]
Make the Transformer respect 'skip' annotations
* In order to suppress unnecessary warnings on macros which are skipped
at later passes of the scanning, we use the annotations to skip
AST stuff being created for symbols that are skipped.
Stef Walter [Sat, 14 May 2011 19:49:53 +0000 (21:49 +0200)]
Fix symbols being reported in invalid files
* Due to the way that flex/bison works, the symbols were being added
to the scanner after additional lines are parsed.
* If these lines are #line directives, then scanner->current_filename
can change between when the symbol is parsed and when it's added.
* Change so that symbol gets filename when parsing rather than when
being added to the scanner.
https://bugzilla.gnome.org/show_bug.cgi?id=650200
Dominique Leuenberger [Mon, 8 Aug 2011 20:33:05 +0000 (22:33 +0200)]
Don't use deprecated G_CONST_RETURN
https://bugzilla.gnome.org/show_bug.cgi?id=656179
Pavel Holejsovsky [Fri, 29 Jul 2011 12:58:16 +0000 (14:58 +0200)]
Reverting "Workaround for CairoRectangleInt exposed in Gdk-3.0.gir"
This was not meant to be pushed (yet). Sorry for confusion.
Pavel Holejsovsky [Thu, 28 Jul 2011 10:42:53 +0000 (12:42 +0200)]
Fix declarations in xlib-2.0.gir
FIx declarations of the subset of XLib types in xlib-2.0.gir so that
they match reality from X11 headers.
https://bugzilla.gnome.org/show_bug.cgi?id=655486
Pavel Holejsovsky [Wed, 27 Jul 2011 14:35:18 +0000 (16:35 +0200)]
Workaround for CairoRectangleInt exposed in Gdk-3.0.gir
This is simple workaround which ignores CairoRectangleInt boxed type
appearing as defined by libgdk, because libgdk simply aliases this
gtype for GdkRectangle (as it also typedef's GdkRectangle to
cairo_rectangle_int_t).
https://bugzilla.gnome.org/show_bug.cgi?id=655423
Colin Walters [Wed, 27 Jul 2011 18:46:21 +0000 (14:46 -0400)]
configure: Post-release version bump
Vincent Untz [Wed, 27 Jul 2011 17:07:21 +0000 (19:07 +0200)]
Fix broken DATADIR definition after config.py was killed
https://bugzilla.gnome.org/show_bug.cgi?id=655437
Colin Walters [Wed, 27 Jul 2011 18:37:34 +0000 (14:37 -0400)]
build: Fix release bits