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
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
Tomeu Vizoso [Fri, 12 Aug 2011 15:16:35 +0000 (17:16 +0200)]
g-ir-doctool: Add annotations (some)
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
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.
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
Colin Walters [Wed, 27 Jul 2011 14:31:30 +0000 (10:31 -0400)]
configure: Post-release version bump
Colin Walters [Wed, 27 Jul 2011 14:30:45 +0000 (10:30 -0400)]
warningtester: Hack in DATADIR
Colin Walters [Wed, 27 Jul 2011 14:30:16 +0000 (10:30 -0400)]
Don't copy python files in scanner tests
We work in srcdir != builddir fine now, no need to copy files around.
Colin Walters [Mon, 25 Jul 2011 20:16:28 +0000 (16:16 -0400)]
configure.ac: Bump version to 1.29.15 to correspond with glib
Colin Walters [Wed, 27 Jul 2011 12:43:57 +0000 (08:43 -0400)]
.gitignore: Cut down to only ./autogen.sh cruft
Since we encourage srcdir != builddir, no need to maintain .gitignore
Colin Walters [Wed, 27 Jul 2011 13:11:02 +0000 (09:11 -0400)]
Kill off config.py
Generating Python source code is problematic for srcdir != builddir;
steal a the trick of putting global data in __builtins__ from jhbuild.
Colin Walters [Wed, 27 Jul 2011 12:50:06 +0000 (08:50 -0400)]
build: Fix srcdir != builddir for flex/bison
Build artifacts go in the builddir, so drop the giscanner/ prefix.
Colin Walters [Mon, 25 Jul 2011 21:24:08 +0000 (17:24 -0400)]
build: Fix pre-commit test for srcdir != builddir
Colin Walters [Mon, 25 Jul 2011 21:20:36 +0000 (17:20 -0400)]
build: rework prepare-minor-release bits to handle srcdir != builddir
Colin Walters [Mon, 25 Jul 2011 20:51:55 +0000 (16:51 -0400)]
build: Fix gtk-doc srcdir != builddir
gtk-doc apparently lies about the path being relative...fix it by just
using $(srcdir).
Colin Walters [Fri, 22 Jul 2011 21:53:34 +0000 (17:53 -0400)]
Update annotations for glib git
Colin Walters [Fri, 22 Jul 2011 21:51:38 +0000 (17:51 -0400)]
update-glib-annotations.py: Attempt to make work for srcdir!=builddir
This doesn't quite work yet because we need to know from glib which
files are in srcdir and which are in builddir.
Also add some debugging prints.
Jasper St. Pierre [Fri, 22 Jul 2011 20:46:10 +0000 (16:46 -0400)]
giscanner: Make comments starting with tab characters work
https://bugzilla.gnome.org/show_bug.cgi?id=655149
Dan Winship [Wed, 29 Jun 2011 12:41:41 +0000 (08:41 -0400)]
giscanner: mark GAsyncReadyCallbacks as allow-none
https://bugzilla.gnome.org/show_bug.cgi?id=653484
Colin Walters [Thu, 30 Jun 2011 20:43:24 +0000 (16:43 -0400)]
dumper: Flush stdout after printing compilation messages
This helps parallel builds make more sense.
Colin Walters [Thu, 30 Jun 2011 15:27:01 +0000 (11:27 -0400)]
dumper: Only make libtool silent if we were passed --silent
Colin Walters [Thu, 23 Jun 2011 22:41:28 +0000 (18:41 -0400)]
update-glib-annotations.py: Merge annotation extraction scripts
Colin Walters [Thu, 23 Jun 2011 21:26:57 +0000 (17:26 -0400)]
giscanner: Support srcdir != builddir
__path__ modification trick from Johan Dahlin.
Jasper Lievisse Adriaanse [Tue, 21 Jun 2011 11:44:56 +0000 (13:44 +0200)]
Rename ALIGN to GI_ALIGN to prevent redefining this macro on some platforms
https://bugzilla.gnome.org/show_bug.cgi?id=652625
Giovanni Campagna [Mon, 20 Jun 2011 19:17:55 +0000 (21:17 +0200)]
Free allocated ffi_types in g_callable_info_free_closure()
g_callable_info_prepare_closure() allocates memory for the argument
types in the ffi_cif, so we need to free it.
https://bugzilla.gnome.org/show_bug.cgi?id=652954
Alex Eftimie [Fri, 10 Jun 2011 05:38:19 +0000 (08:38 +0300)]
Added marshalling tests for GPtrArray
https://bugzilla.gnome.org/show_bug.cgi?id=652256
Colin Walters [Fri, 17 Jun 2011 16:14:58 +0000 (12:14 -0400)]
gimarshallingtests: Fix and change byte array tests
gi_marshalling_tests_bytearray_full_return was broken; there
should be no g_strdup() going on here.
While we're at it, change the expected data to actually include
non-ASCII so we're testing something a bit more interesting.
Colin Walters [Fri, 17 Jun 2011 13:40:20 +0000 (09:40 -0400)]
glib-2.0.c: Update from git
4476e22a14af93d375d3a9d8cd2ab8deedf669ad
https://bugzilla.gnome.org/show_bug.cgi?id=647796
Colin Walters [Fri, 17 Jun 2011 13:20:33 +0000 (09:20 -0400)]
gimarshallingtests: Fix gi_marshalling_tests_init_function()
Array binds more tightly than deref.
Colin Walters [Thu, 16 Jun 2011 22:03:29 +0000 (18:03 -0400)]
gimarshallingtests: Add a test function that looks like gtk_init()
Colin Walters [Thu, 16 Jun 2011 18:43:21 +0000 (14:43 -0400)]
gimarshallingtests: Remove gi_marshalling_tests_array_nested_in
We don't actually support nested container types in practice.
Colin Walters [Tue, 14 Jun 2011 02:09:31 +0000 (22:09 -0400)]
configure: Post-release version bump
Giovanni Campagna [Thu, 12 May 2011 21:38:17 +0000 (23:38 +0200)]
Add tests for complex arrays as in arguments
Previously gjs supported only arrays of integers. Now that this
changed, we need tests to avoid regressions.
https://bugzilla.gnome.org/show_bug.cgi?id=646632
Dan Winship [Thu, 2 Jun 2011 18:57:58 +0000 (14:57 -0400)]
gimarshallingtests: add a few more array tests
Add some tests with parameters on either side of an out array length
parameter, to ensure that bindings that omit the length parameter
don't mess up any other parameters.
https://bugzilla.gnome.org/show_bug.cgi?id=651558
Colin Walters [Fri, 10 Jun 2011 16:58:39 +0000 (12:58 -0400)]
Colin Walters [Thu, 9 Jun 2011 20:15:12 +0000 (16:15 -0400)]
Update glib-2.0 from glib git
Using commit
4db88bd6e2957893b9f232527cc46bda799f2027
Colin Walters [Thu, 9 Jun 2011 20:22:24 +0000 (16:22 -0400)]
configure: Require latest glib
Colin Walters [Thu, 9 Jun 2011 20:12:53 +0000 (16:12 -0400)]
Update gio-2.0.c and gobject-2.0.c from glib
Using commit
4db88bd6e2957893b9f232527cc46bda799f2027
Colin Walters [Thu, 9 Jun 2011 16:10:40 +0000 (12:10 -0400)]
Don't use soon-to-be deprecated G_CONST_RETURN
See https://bugzilla.gnome.org/show_bug.cgi?id=644611
Colin Walters [Thu, 9 Jun 2011 16:05:18 +0000 (12:05 -0400)]
gdumpparser.py: Limit line length to 100
Giovanni Campagna [Wed, 25 May 2011 17:26:49 +0000 (19:26 +0200)]
Rework how fundamental GObject types are introspected
Change the special code for handling GObject and GInitiallyUnowned
so that it exposes GParamSpec as a class, and it allows GVariant to
have a GType without using the deprecate g_variant_get_gtype.
It is a sort of ABI break, in that new typelibs won't work with
previous versions of libgirepository.
https://bugzilla.gnome.org/show_bug.cgi?id=646635
Giovanni Campagna [Sun, 5 Jun 2011 18:57:01 +0000 (20:57 +0200)]
Fix accessing structure fields that are arrays
We need to distinguish inline arrays inside structures, and arrays
that are pointers and annotations, and we can do it with
g_type_info_is_pointer(), setting it to FALSE for fixed size arrays.
As a side effect, (array fixed-size=N) on a pointer type has no longer
the expected result.
https://bugzilla.gnome.org/show_bug.cgi?id=646635
Colin Walters [Tue, 7 Jun 2011 22:04:37 +0000 (18:04 -0400)]
update-glib-annotations.py: new script
Colin Walters [Tue, 7 Jun 2011 20:36:24 +0000 (16:36 -0400)]
misc: rewrite extract-gio-sources.sh to use gio-public-headers.txt
Rather than maintaining our own exclusion list, grab the text file
generated by commit
ab0e9dbfa76e056f875e969c0d7b6e133ec75431 in glib.
Also it is now Python for sanity.
Colin Walters [Tue, 7 Jun 2011 20:28:05 +0000 (16:28 -0400)]
misc: rewrite extract-gobject-sources.sh to use gobject-public-headers.txt
Rather than maintaining our own exclusion list, grab the text file
generated by commit
ab0e9dbfa76e056f875e969c0d7b6e133ec75431 in glib.
Also it is now Python for sanity.
Tomeu Vizoso [Mon, 6 Jun 2011 18:06:54 +0000 (20:06 +0200)]
Assume only that an array is embedded in a struct if it's fixed size
Giovanni Campagna [Wed, 1 Jun 2011 14:59:17 +0000 (16:59 +0200)]
Always add a zero-terminated attribute when it cannot be implied
g-ir-compiler assumes that an array is zero terminated when the
attribute is absent and there is no other attribute (length and
fixed-size), but g-ir-scanner only added the attribute when it is 0.
This means that an explicit zero-terminated=1 annotation would have
had no effect.
Fix that and at the same time ensure that all other arrays are not
zero-terminated by default.
https://bugzilla.gnome.org/show_bug.cgi?id=646635
Giovanni Campagna [Fri, 3 Jun 2011 23:10:42 +0000 (19:10 -0400)]
Add boxed types definition for GLib
Use the new glib-boxed.h header from gobject to pair structure
definitions with boxed types in the GLib namespace, improving the
introspection coverage and removing some hacks.
Some fixes from Colin Walters <walters@verbum.org>
https://bugzilla.gnome.org/show_bug.cgi?id=646635
Colin Walters [Fri, 3 Jun 2011 21:32:15 +0000 (17:32 -0400)]
scanner: Support _get_gtype() as a GType creation suffix
Based on a patch by Giovanni Campagna <gcampagna@src.gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=646635
Colin Walters [Fri, 3 Jun 2011 20:52:50 +0000 (16:52 -0400)]
Colin Walters [Wed, 1 Jun 2011 22:29:35 +0000 (18:29 -0400)]
scanner: Parse GNUC expression statements
This is needed so we don't fail to parse gatomic.h from GLib.
https://bugzilla.gnome.org/show_bug.cgi?id=651548
Giovanni Campagna [Wed, 25 May 2011 18:32:33 +0000 (20:32 +0200)]
Regress: fix GVariant tests
Functions that return floating GVariants must be marked (transfer
none).
https://bugzilla.gnome.org/show_bug.cgi?id=622344
Colin Walters [Wed, 25 May 2011 15:47:38 +0000 (11:47 -0400)]
Regress: Add GVariant tests
Colin Walters [Mon, 23 May 2011 13:59:02 +0000 (09:59 -0400)]
gifieldinfo.c: Quiet some compiler warnings
John Ralls [Thu, 19 May 2011 18:27:18 +0000 (11:27 -0700)]
Bug 650622: Wrong suffix for CAIRO_SHARED_LIBRARY on OSX
David Zeuthen [Sat, 14 May 2011 00:40:17 +0000 (20:40 -0400)]
Add more coverage for recently added (skip) regress additions
Whilst doing the gjs patch, it turned out this was needed in order to
do a robust test suite - we really want to cover all bases here.
Signed-off-by: David Zeuthen <davidz@redhat.com>