Rico Tzschichholz [Wed, 22 Feb 2012 22:41:30 +0000 (23:41 +0100)]
g-ir-doc-tool: Add missing files
Rico Tzschichholz [Tue, 21 Feb 2012 17:45:32 +0000 (18:45 +0100)]
tests: Fix make dist
Tomeu Vizoso [Tue, 21 Feb 2012 17:16:00 +0000 (18:16 +0100)]
g-ir-doc-tool: Remove class structs from Python docs
Tomeu Vizoso [Tue, 21 Feb 2012 17:04:13 +0000 (18:04 +0100)]
g-ir-doc-tool: Add support for virtual functions
Tomeu Vizoso [Tue, 21 Feb 2012 16:17:17 +0000 (17:17 +0100)]
g-ir-doc-tool: Add a method in the tests
Tomeu Vizoso [Tue, 21 Feb 2012 15:54:05 +0000 (16:54 +0100)]
g-ir-doc-tool: Update .gitignore
Tomeu Vizoso [Tue, 21 Feb 2012 15:52:04 +0000 (16:52 +0100)]
g-ir-doc-tool: Remove constructors from python docs
Tomeu Vizoso [Tue, 21 Feb 2012 15:41:21 +0000 (16:41 +0100)]
g-ir-doc-tool: Add class to its own hierarchy tree
Tomeu Vizoso [Tue, 21 Feb 2012 15:36:34 +0000 (16:36 +0100)]
g-ir-doc-tool: Add tests for signals
Tomeu Vizoso [Tue, 21 Feb 2012 15:22:16 +0000 (16:22 +0100)]
g-ir-doc-tool: Add the first argument of signals to the Python docs
Tomeu Vizoso [Tue, 21 Feb 2012 15:17:59 +0000 (16:17 +0100)]
g-ir-doc-tool: Create a GIR file specific for testing doc generation
This will also serve as a reference of the syntax that is currently
supported by g-ir-doc-tool.
Colin Walters [Tue, 21 Feb 2012 15:41:52 +0000 (10:41 -0500)]
build: Add --enable-doctool option
Rico Tzschichholz [Tue, 21 Feb 2012 09:21:25 +0000 (10:21 +0100)]
g-ir-doc-tool: Update expected tests
Rico Tzschichholz [Tue, 21 Feb 2012 09:11:48 +0000 (10:11 +0100)]
Update annotations for GLib 2.31.18
Tomeu Vizoso [Mon, 20 Feb 2012 17:43:01 +0000 (18:43 +0100)]
g-ir-doc-tool: Add enum templates to the Makefile
Tomeu Vizoso [Mon, 20 Feb 2012 17:37:37 +0000 (18:37 +0100)]
g-ir-doc-tool: Add missing file: giscanner/mallard-C-enum.tmpl
Tomeu Vizoso [Mon, 20 Feb 2012 17:37:08 +0000 (18:37 +0100)]
g-ir-doc-tool: Change the -o option to receive a directory
Tomeu Vizoso [Mon, 20 Feb 2012 17:18:04 +0000 (18:18 +0100)]
Merge branch 'mallard-templates'
Tomeu Vizoso [Mon, 20 Feb 2012 17:12:40 +0000 (18:12 +0100)]
g-ir-doc-tool: Update expected tests, some whitespace has been removed
Tomeu Vizoso [Mon, 20 Feb 2012 17:12:23 +0000 (18:12 +0100)]
Mention g-ir-doc-tool in the README
Tomeu Vizoso [Mon, 20 Feb 2012 16:35:08 +0000 (17:35 +0100)]
g-ir-doc-tool: Add some more stuff to Enum pages
Tomeu Vizoso [Mon, 20 Feb 2012 15:57:14 +0000 (16:57 +0100)]
g-ir-doc-tool: Display the hierarchy tree for classes
Tomeu Vizoso [Mon, 20 Feb 2012 14:38:15 +0000 (15:38 +0100)]
g-ir-doc-tool: Install the Mako template files
Tomeu Vizoso [Mon, 20 Feb 2012 14:01:30 +0000 (15:01 +0100)]
g-ir-doc-tool: Add AM_CHECK_PYMOD macro and use it to check for Mako
Tomeu Vizoso [Mon, 20 Feb 2012 13:36:36 +0000 (14:36 +0100)]
g-ir-doc-tool: Remove stale DocBook files
Tomeu Vizoso [Mon, 20 Feb 2012 13:20:22 +0000 (14:20 +0100)]
g-ir-doc-tool: Properly link to property pages
Tomeu Vizoso [Mon, 20 Feb 2012 12:55:37 +0000 (13:55 +0100)]
g-ir-doc-tool: Fix names of xref links
Tomeu Vizoso [Mon, 20 Feb 2012 12:44:00 +0000 (13:44 +0100)]
g-ir-doc-tool: Move constructor example to follow the class doc body
Tomeu Vizoso [Mon, 20 Feb 2012 12:43:30 +0000 (13:43 +0100)]
g-ir-doc-tool: Properly link to signal pages
Tomeu Vizoso [Mon, 20 Feb 2012 12:42:43 +0000 (13:42 +0100)]
g-ir-doc-tool: Fix the id of signal pages for Python
Tomeu Vizoso [Mon, 20 Feb 2012 12:21:40 +0000 (13:21 +0100)]
g-ir-doc-tool: Qualify the class name in the constructor with the module name
Tomeu Vizoso [Mon, 20 Feb 2012 12:16:47 +0000 (13:16 +0100)]
g-ir-doc-tool: Add links to properties in the constructor
Tomeu Vizoso [Mon, 20 Feb 2012 12:16:28 +0000 (13:16 +0100)]
g-ir-doc-tool: Fix link
Tomeu Vizoso [Mon, 20 Feb 2012 11:21:41 +0000 (12:21 +0100)]
g-ir-doc-tool: Show how to construct instances in the Class page
Tomeu Vizoso [Mon, 20 Feb 2012 10:30:21 +0000 (11:30 +0100)]
g-ir-doc-tool: Add details for properties in Python
Tomeu Vizoso [Sun, 19 Feb 2012 16:32:00 +0000 (17:32 +0100)]
g-ir-doc-tool: Add param information to signal pages in Python
Tomeu Vizoso [Sun, 19 Feb 2012 15:35:59 +0000 (16:35 +0100)]
g-ir-doc-tool: Implement intra-namespace cross references
Tomeu Vizoso [Sun, 19 Feb 2012 15:22:23 +0000 (16:22 +0100)]
g-ir-doc-tool: Use instances of MallardFormatter* instead of class methods
Tomeu Vizoso [Sun, 19 Feb 2012 14:33:48 +0000 (15:33 +0100)]
g-ir-doc-tool: Remove some occurrences of empty Returns: lines
Tomeu Vizoso [Sun, 19 Feb 2012 14:27:54 +0000 (15:27 +0100)]
g-ir-doc-tool: use True and False instead of %TRUE and %FALSE
Tomeu Vizoso [Sun, 19 Feb 2012 13:56:03 +0000 (14:56 +0100)]
g-ir-doc-tool: Remove module and class from the function signature
Tomeu Vizoso [Sun, 19 Feb 2012 13:55:14 +0000 (14:55 +0100)]
g-ir-doctool: Use template caching
Tomeu Vizoso [Sun, 19 Feb 2012 10:47:01 +0000 (11:47 +0100)]
g-ir-doc-tool: Use None instead of %NULL
Tomeu Vizoso [Sun, 19 Feb 2012 10:08:40 +0000 (11:08 +0100)]
g-ir-doc-tool: Use the ctype for the return type in signatures
Tomeu Vizoso [Sun, 19 Feb 2012 10:06:35 +0000 (11:06 +0100)]
g-ir-doc-tool: Display Returns: even if there's no args
Tomeu Vizoso [Sat, 18 Feb 2012 16:02:22 +0000 (17:02 +0100)]
g-ir-doc-tool: Update expected, some whitespace was removed
Tomeu Vizoso [Sat, 18 Feb 2012 16:00:51 +0000 (17:00 +0100)]
g-ir-doc-tool: Add Since: tag to classes
Tomeu Vizoso [Sat, 18 Feb 2012 11:17:43 +0000 (12:17 +0100)]
g-ir-doc-tool: Add Since: tag to mallard docs
Tomeu Vizoso [Sat, 18 Feb 2012 11:08:41 +0000 (12:08 +0100)]
g-ir-doctool: Add function argument docs to the C template
Tomeu Vizoso [Sat, 18 Feb 2012 10:59:17 +0000 (11:59 +0100)]
g-ir-doctool: Add argument docs to the Python template
Jean Bréfort [Fri, 17 Feb 2012 16:48:35 +0000 (11:48 -0500)]
repository: Ensure error is set if we're parsing a malformed file
https://bugzilla.gnome.org/show_bug.cgi?id=661951
Tomeu Vizoso [Fri, 17 Feb 2012 12:39:15 +0000 (13:39 +0100)]
g-ir-doctool: Don't instantiate MallardFormatter for unknown languages
Tomeu Vizoso [Fri, 17 Feb 2012 09:43:01 +0000 (10:43 +0100)]
g-ir-doc-tool: Update expected mallard for the doc tests
Shaun McCance [Wed, 24 Aug 2011 15:32:18 +0000 (11:32 -0400)]
g-ir-doc-tool: Consolidating the function templates
Shaun McCance [Tue, 23 Aug 2011 14:43:34 +0000 (10:43 -0400)]
g-ir-doc-tool: Added MallardFormatter class
Shaun McCance [Tue, 23 Aug 2011 13:12:02 +0000 (09:12 -0400)]
g-ir-doc-tool: More Mallard work, using experimantal api extension
Shaun McCance [Thu, 18 Aug 2011 23:47:50 +0000 (19:47 -0400)]
g-ir-doc-tool: Templates for signals/properties, class docs
Tomeu Vizoso [Wed, 17 Aug 2011 08:23:58 +0000 (10:23 +0200)]
g-ir-doctool: Move to Mako templates for generating Mallard
Also removes the docbook writer
Martin Pitt [Thu, 16 Feb 2012 15:12:09 +0000 (16:12 +0100)]
Add test for a GPtrArray return with transfer full
This complements the already existing
regress_test_garray_container_return() test.
Giovanni Campagna [Tue, 14 Feb 2012 18:11:15 +0000 (19:11 +0100)]
Update glib annotations
Updated to glib 2.31.16-56-gd240b88, which includes one change
to GKeyFile.
Giovanni Campagna [Sat, 11 Feb 2012 15:02:40 +0000 (16:02 +0100)]
Add tests for GType of GValue
Some language bindings (like gjs) attempt to automatically infer the
GType from a native object when creating a GValue. This checks that
indeed the GValue has the right GType.
https://bugzilla.gnome.org/show_bug.cgi?id=669848
Jasper St. Pierre [Sun, 12 Feb 2012 23:52:20 +0000 (18:52 -0500)]
giscanner: Add better errors for unknown param names
Exclude the names we've already matched up from the "should be one of..." list
Jasper St. Pierre [Fri, 10 Feb 2012 15:19:17 +0000 (10:19 -0500)]
girffi: Virtual functions are methods
Jasper St. Pierre [Thu, 9 Feb 2012 20:43:23 +0000 (15:43 -0500)]
scanner: Allow adding annotations to vfuncs directly
Some vfuncs may not have public invokers. In these cases, annotations
may still be needed to correctly implement or chain up to a virtual
method from a subclass's implementation.
Thorsten Glaser [Wed, 8 Feb 2012 14:02:37 +0000 (09:02 -0500)]
typelib: Fix invalid alignment assumptions
The current source has invalid assumptions about structure alignment
that break on platforms like m68k where 32-bit integers are aligned to
16-bit only. Fix this by introducing explicit structure padding for
32-bit quantities following odd numbers of 16-bit quantities and
structure trail padding, to make the binary representation generated
by the compiler match the text of the specification exactly.
https://bugzilla.gnome.org/show_bug.cgi?id=661839
Rico Tzschichholz [Mon, 6 Feb 2012 18:57:53 +0000 (19:57 +0100)]
tests/scanner: Update Regress-1.0-expected.gir
Sebastian Pölsterl [Sun, 5 Feb 2012 10:45:07 +0000 (11:45 +0100)]
tests: Added class that has all kinds of properties
https://bugzilla.gnome.org/show_bug.cgi?id=664150
Giovanni Campagna [Mon, 11 Jul 2011 18:05:48 +0000 (20:05 +0200)]
Add tests for array arguments in callbacks
Add a test that accepts a callback receiving array arguments
https://bugzilla.gnome.org/show_bug.cgi?id=654406
Paolo Borelli [Sun, 5 Feb 2012 17:54:43 +0000 (18:54 +0100)]
Add regress_test_null_gerror_callback
It models the case where a callback that return a gerror succeds and set
the error to NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=669415
Jesse van den Kieboom [Fri, 3 Feb 2012 16:11:59 +0000 (17:11 +0100)]
Plug memory leak in lazy typelibs hash table
https://bugzilla.gnome.org/show_bug.cgi?id=669317
Sebastian Pölsterl [Sun, 5 Feb 2012 10:41:12 +0000 (11:41 +0100)]
Use g_free as element_free_func
The elements of the GPtrArray are of type char*, therefore use
g_free rather than g_object_unref to as element_free_func
Jasper St. Pierre [Fri, 3 Feb 2012 18:47:17 +0000 (13:47 -0500)]
girffi: Fix g_function_info_new_for_address to respect G_VFUNC_THROWS
Colin Walters [Fri, 3 Feb 2012 18:42:56 +0000 (13:42 -0500)]
Add Emacs mode lines to C sources
Colin Walters [Fri, 3 Feb 2012 18:20:00 +0000 (13:20 -0500)]
girepository: Add GI_VFUNC_THROWS
Virtual functions can definitely throw an error. Right now the
scanner omits the GError parameter for them and adds throws="1", but
g-ir-compiler ignores this.
https://bugzilla.gnome.org/show_bug.cgi?id=669332
Colin Walters [Fri, 3 Feb 2012 17:53:22 +0000 (12:53 -0500)]
tests: Squash compile warning, fix C indentation
Jasper St. Pierre [Fri, 3 Feb 2012 15:54:19 +0000 (10:54 -0500)]
tests: Add marshalling tests for various kinds of callbacks
Jasper St. Pierre [Thu, 5 Jan 2012 02:38:03 +0000 (21:38 -0500)]
tests: Add another simple boxed type with a complex constructor
Jasper St. Pierre [Thu, 5 Jan 2012 02:37:48 +0000 (21:37 -0500)]
tests: Add marshalling tests for various kinds of vfunc callbacks
To make sure that bindings can sanely deal with multiple kinds
of callbacks, let's test some behaviors.
Jasper St. Pierre [Wed, 4 Jan 2012 19:46:51 +0000 (14:46 -0500)]
giobjectinfo: Add g_object_info_find_vfunc_using_interfaces
As an analogue to g_object_info_find_method_using_interfaces, add a
new API so that we can find a vfunc using the same strategy.
Jasper St. Pierre [Mon, 28 Nov 2011 19:51:04 +0000 (14:51 -0500)]
girffi: Add new g_function_invoker_new_for_address
This is a new method designed to make a GIFunctionInvoker for
any GICallableInfo*, for bindings to use.
Rico Tzschichholz [Tue, 31 Jan 2012 07:09:21 +0000 (08:09 +0100)]
Update annotations for GLib 2.31.14
Jasper St. Pierre [Sun, 22 Jan 2012 08:32:44 +0000 (03:32 -0500)]
tests: Add more interesting marshalling tests for GTypes
https://bugzilla.gnome.org/show_bug.cgi?id=668426
Martin Pitt [Mon, 23 Jan 2012 07:53:44 +0000 (08:53 +0100)]
Add regress test methods for callbacks taking GError and GHashTable
This covers both "transfer none" and "transfer full" cases.
This is a requisite for writing a pygobject test case for
https://bugzilla.gnome.org/show_bug.cgi?id=666270
Will Thompson [Fri, 20 Jan 2012 14:48:20 +0000 (14:48 +0000)]
tests: add test functions which return GErrors
GStreamer has the following method:
void gst_message_parse_error (
GstMessage *message,
GError **error,
gchar **debug_message);
This patch adds a number of test functions with similar signatures which
do not follow the standard "throws GError" pattern.
https://bugzilla.gnome.org/show_bug.cgi?id=666098
Colin Walters [Thu, 19 Jan 2012 22:14:19 +0000 (17:14 -0500)]
Release 1.31.10
Rico Tzschichholz [Thu, 19 Jan 2012 10:34:32 +0000 (11:34 +0100)]
Update annotations from glib git
Colin Walters [Wed, 11 Jan 2012 20:58:08 +0000 (15:58 -0500)]
Update annotations from glib git
Olivier Crête [Tue, 20 Dec 2011 22:45:11 +0000 (17:45 -0500)]
Allow using GLib.List(Foo) instead of GLib.List<Foo>
Using < and > for delimiters is problematic because gtk-doc is Docbook
which in turn is SGML, and those are reserved characters.
https://bugzilla.gnome.org/show_bug.cgi?id=663190
Rico Tzschichholz [Sun, 8 Jan 2012 14:10:04 +0000 (15:10 +0100)]
Update annotations from GLib git
Jasper St. Pierre [Tue, 30 Aug 2011 20:43:18 +0000 (16:43 -0400)]
tests: Add tests for flat GValue arrays
https://bugzilla.gnome.org/show_bug.cgi?id=657766
Jasper St. Pierre [Mon, 12 Dec 2011 20:24:20 +0000 (15:24 -0500)]
scanner: Remove duplicate declaration of ErrorQuarkFunction
Jasper St. Pierre [Fri, 6 Jan 2012 19:55:45 +0000 (14:55 -0500)]
girffi: Fix compiler warnings
Jasper St. Pierre [Mon, 12 Dec 2011 21:14:57 +0000 (16:14 -0500)]
repository: Squash memory leak in _get_func and fix up style
Paolo Borelli [Tue, 3 Jan 2012 16:00:02 +0000 (17:00 +0100)]
Add a marshalling test for returning a NULL array
Colin Walters [Mon, 2 Jan 2012 18:25:38 +0000 (13:25 -0500)]
.dir-locals: Fix unbalanced parenthesis
Ray Strode [Wed, 21 Dec 2011 20:55:18 +0000 (15:55 -0500)]
ffi: Treat enums as 32 bit signed values to fix PPC64
To call a function dynamically using ffi, the caller
first has to tell ffi the size of all the input arguments
of the function. On little endian architectures (like x86_64)
specifying a size that's too large will happen to work because
of how the bits are laid out in memory. On big endian architectures,
however, specifying the wrong size can lead to reading the wrong
bits.
The function g_type_info_get_ffi_type maps input giargument types to
specific sizes. It was assuming enums were word (pointer) sized; in
fact they can be in theory any size (1,2,4,8 bytes), but in practice
in introspection (via GIArgument) as well as GValue we're limited to 4
byte enums.
This commit fixes PPC64 (big endian, 64 bit).
Signed-off-by: Colin Walters <walters@verbum.org>
https://bugzilla.gnome.org/show_bug.cgi?id=665150
Colin Walters [Tue, 20 Dec 2011 18:24:03 +0000 (13:24 -0500)]
tests: Add a long string constant test
https://bugzilla.gnome.org/show_bug.cgi?id=662888
Colin Walters [Tue, 20 Dec 2011 16:14:51 +0000 (11:14 -0500)]
Release 1.31.6
Rico Tzschichholz [Tue, 20 Dec 2011 13:43:11 +0000 (14:43 +0100)]
Update annotations for GLib 2.31.6
Rico Tzschichholz [Tue, 20 Dec 2011 13:42:25 +0000 (14:42 +0100)]
Update gitignore