platform/upstream/gobject-introspection.git
12 years agotests: Add GSpawnError-alike to SLetter
Colin Walters [Mon, 2 Jul 2012 20:15:05 +0000 (16:15 -0400)]
tests: Add GSpawnError-alike to SLetter

See https://bugzilla.gnome.org/show_bug.cgi?id=637025 for motivation.

12 years agotests: Add SLetter
Colin Walters [Mon, 2 Jul 2012 20:06:00 +0000 (16:06 -0400)]
tests: Add SLetter

This test case has a single-letter symbol prefix, which triggers
edge cases in the difference between prefix handling.

See https://bugzilla.gnome.org/show_bug.cgi?id=637025

12 years agoFix build
Jasper St. Pierre [Fri, 29 Jun 2012 14:05:09 +0000 (10:05 -0400)]
Fix build

12 years agoscanner: Remove properties
Jasper St. Pierre [Thu, 28 Jun 2012 20:52:57 +0000 (16:52 -0400)]
scanner: Remove properties

We don't need a basic getter for a private field - this isn't Java.

12 years agoscanner: Don't use an O(N) lookup when we already have a hashmap
Jasper St. Pierre [Thu, 28 Jun 2012 19:13:08 +0000 (15:13 -0400)]
scanner: Don't use an O(N) lookup when we already have a hashmap

This is a general code cleanup.

12 years agofix GIArgument being exported as _Argument in .gir
Alan Knowles [Thu, 28 Jun 2012 16:07:35 +0000 (12:07 -0400)]
fix GIArgument being exported as _Argument in .gir

https://bugzilla.gnome.org/show_bug.cgi?id=635128

12 years agoRevert scanner fix in 64f3832
Jasper St. Pierre [Wed, 27 Jun 2012 22:02:26 +0000 (18:02 -0400)]
Revert scanner fix in 64f3832

This is incorrect -- the type name that's passed to the function
should contain a prefix. This fixes error domains for GLib errors.
Don't revert doc changes or test additions.

12 years agoRelease 1.33.3 GOBJECT_INTROSPECTION_1_33_3
Colin Walters [Tue, 26 Jun 2012 13:04:27 +0000 (09:04 -0400)]
Release 1.33.3

12 years agoUpdate glib annotations from git
Rico Tzschichholz [Sat, 23 Jun 2012 18:59:19 +0000 (20:59 +0200)]
Update glib annotations from git

12 years agoscanner: complete the enum-to-error-quark fix
Giovanni Campagna [Mon, 18 Jun 2012 17:10:50 +0000 (19:10 +0200)]
scanner: complete the enum-to-error-quark fix

Turns out that the problem was not only in the wrong matching
to GType enums, but also that the non-GType heuristics used
to_underscores instead of to_underscores_noprefix, turning DBusError
into D_Bus_Error instead of DBus_Error.
Complete with various tests.

https://bugzilla.gnome.org/show_bug.cgi?id=669350

12 years agoscanner: fix pairing of error quarks with registered enums
Giovanni Campagna [Sat, 16 Jun 2012 12:59:32 +0000 (14:59 +0200)]
scanner: fix pairing of error quarks with registered enums

_uscore_type_names maps from the c_symbol_prefix, which has the
global ns prefix removed, so we need to split the function symbol
before the lookup. Previously it worked because it used the heuristics
for unregistered enums (and failed for GDBusError, which has two
uppercase letters in succession)

https://bugzilla.gnome.org/show_bug.cgi?id=669350

12 years agoRelease 1.33.2 GOBJECT_INTROSPECTION_1_33_2
Colin Walters [Tue, 5 Jun 2012 15:20:03 +0000 (11:20 -0400)]
Release 1.33.2

12 years agoUpdate annotations to glib 2.33.2
Colin Walters [Tue, 5 Jun 2012 15:19:33 +0000 (11:19 -0400)]
Update annotations to glib 2.33.2

12 years agotests: Add marshalling test for a boxed struct property
Martin Pitt [Tue, 5 Jun 2012 09:48:15 +0000 (11:48 +0200)]
tests: Add marshalling test for a boxed struct property

Also make the _copy()/_free() methods for GIMarshallingTestsBoxedStruct get
along with NULL values.

https://bugzilla.gnome.org/show_bug.cgi?id=676603

12 years agotests: Add a refcounting boxed
Jasper St. Pierre [Fri, 1 Jun 2012 06:54:46 +0000 (02:54 -0400)]
tests: Add a refcounting boxed

https://bugzilla.gnome.org/show_bug.cgi?id=677249

12 years agotests: Add vfunc taking a caller-allocated out parameter
Martin Pitt [Fri, 1 Jun 2012 10:31:15 +0000 (12:31 +0200)]
tests: Add vfunc taking a caller-allocated out parameter

This reproduces
https://bugzilla.gnome.org/show_bug.cgi?id=653151

12 years agotests: Add marshalling test for a caller-allocated out GValue parameter
Martin Pitt [Fri, 1 Jun 2012 10:01:53 +0000 (12:01 +0200)]
tests: Add marshalling test for a caller-allocated out GValue parameter

This came up as a side issue in
https://bugzilla.gnome.org/show_bug.cgi?id=653151

12 years agoscanner: allow for functions that look like constructors but aren't
Dan Winship [Sun, 27 May 2012 00:19:39 +0000 (20:19 -0400)]
scanner: allow for functions that look like constructors but aren't

If the scanner found a function with _new in its name, but not
prefixed by the name of a known type, it would assume that the
function was a constructor, and then complain that it couldn't figure
out what it was a constructor for, and mark it introspectable=0.

Instead, just assume that the function is not actually a constructor
in that case (unless it's explicitly tagged as such).

https://bugzilla.gnome.org/show_bug.cgi?id=676815

12 years agogivfuncinfo: Fix memory leak
Jasper St. Pierre [Fri, 25 May 2012 20:32:44 +0000 (16:32 -0400)]
givfuncinfo: Fix memory leak

The field info wasn't being freed after it was used

12 years agotests: Fix a memory leak
Jasper St. Pierre [Fri, 25 May 2012 20:00:38 +0000 (16:00 -0400)]
tests: Fix a memory leak

We need to unref the cairo surface here, as we are making the context
be the sole owner of it.

https://bugzilla.gnome.org/show_bug.cgi?id=671687

12 years agotests: Add a foreign struct signal test
Jasper St. Pierre [Fri, 25 May 2012 19:24:34 +0000 (15:24 -0400)]
tests: Add a foreign struct signal test

https://bugzilla.gnome.org/show_bug.cgi?id=671687

12 years agotests: Fix warnings
Jasper St. Pierre [Fri, 25 May 2012 19:27:38 +0000 (15:27 -0400)]
tests: Fix warnings

https://bugzilla.gnome.org/show_bug.cgi?id=671687

12 years agoUpdate annotations
Jasper St. Pierre [Thu, 24 May 2012 21:53:49 +0000 (17:53 -0400)]
Update annotations

12 years agoUpdate glib annotations from git
Rico Tzschichholz [Thu, 24 May 2012 06:27:36 +0000 (08:27 +0200)]
Update glib annotations from git

12 years agogirepository: avoid crash when querying nonexistent info
Pavel Holejsovsky [Sat, 12 May 2012 05:44:57 +0000 (07:44 +0200)]
girepository: avoid crash when querying nonexistent info

It appears that cmph library can return (n+1) when querying item not
present in its original n-item-sized set.  Adjust code so that it
detects this condition and do not chase stray pointers resulting from
this bogus(?) hash result.

https://bugzilla.gnome.org/show_bug.cgi?id=675939

12 years agoGIMarshallingTests: Add GStrv property
Martin Pitt [Sat, 5 May 2012 21:43:21 +0000 (14:43 -0700)]
GIMarshallingTests: Add GStrv property

12 years agoFix regress_test_closure_variant return value
Martin Pitt [Sat, 5 May 2012 19:14:52 +0000 (12:14 -0700)]
Fix regress_test_closure_variant return value

We need to g_variant_ref() the return type: the closure delivers it wrapped
in a GValue, and the subsequent g_value_unset() unrefs it to zero otherwise.

This was uncovered by the now working TestClosures.test_variant() test case in
PyGObject.

Also allow passing NULL as argument, to be able to test these code paths as
well.

12 years agoUpdate glib annotations to 2.33.1
Rico Tzschichholz [Wed, 2 May 2012 19:26:42 +0000 (21:26 +0200)]
Update glib annotations to 2.33.1

12 years agoAdd the fixed width C99 types from stdint.h
Neil Roberts [Wed, 25 Apr 2012 13:20:09 +0000 (14:20 +0100)]
Add the fixed width C99 types from stdint.h

C99 has standard types for fixed width signed and unsigned integers.
This adds types to giscanner to map them to the glib equivalent types.

stdint.h also has other types to specify specify sizes with at least a
certain number of bits, the fastest type with at least some number of
bits, a type big enough to store a pointer and a type containing the
most number of bits. These don't map well to glib types so I have
ignored them.

https://bugzilla.gnome.org/show_bug.cgi?id=674796

12 years agoFix GVariant handling in regress_test_closure_variant
Martin Pitt [Wed, 2 May 2012 10:49:25 +0000 (12:49 +0200)]
Fix GVariant handling in regress_test_closure_variant

Commit 7c4fbbd6 introduced some low-level g_memdup()ing of the passed GVariant
in regress_test_closure_variant(). This causes a race condition with GI clients
like pygobject's test suite, which sometimes fail with

  (runtests.py:15653): GLib-CRITICAL **: g_variant_ref_sink: assertion `value->ref_count > 0' failed

Drop the memduping again, and instead make the argument non-const (which is
true, as the method temporarily increases the refcount).

12 years agog-ir-doc-tool: Update expected file
Rico Tzschichholz [Thu, 26 Apr 2012 16:05:29 +0000 (18:05 +0200)]
g-ir-doc-tool: Update expected file

Should have signal arguments in the right order

12 years agoUpdate glib annotations from git
Rico Tzschichholz [Thu, 26 Apr 2012 14:52:26 +0000 (16:52 +0200)]
Update glib annotations from git

12 years agoconfigure: Update to 1.33.0
Rico Tzschichholz [Thu, 26 Apr 2012 14:39:46 +0000 (16:39 +0200)]
configure: Update to 1.33.0

12 years agotests: Add flags and enum to GValue GHash in/out
Martin Pitt [Tue, 24 Apr 2012 11:19:43 +0000 (13:19 +0200)]
tests: Add flags and enum to GValue GHash in/out

Add a flag and enum check to
the GHashes returned/expected by regress_test_ghash_gvalue_{return,in}().

https://bugzilla.gnome.org/show_bug.cgi?id=637466

12 years agotests: Add array marshalling test for array without length argument
Bastian Winkler [Fri, 20 Apr 2012 12:01:18 +0000 (14:01 +0200)]
tests: Add array marshalling test for array without length argument

A test case with an array in-argument that is neither zero terminated,
nor fixed length, nor blessed with a length argument.

This is, for example, the case in clutter_texture_set_from_rgb_data()

https://bugzilla.gnome.org/show_bug.cgi?id=674271

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
12 years agotests: Add GType property TestObj:gtype
Bastian Winkler [Thu, 19 Apr 2012 06:01:18 +0000 (08:01 +0200)]
tests: Add GType property TestObj:gtype

Needed for https://bugzilla.gnome.org/show_bug.cgi?id=674351

https://bugzilla.gnome.org/show_bug.cgi?id=674366

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
12 years agoUpdate Gio/GLib/GObject annotations
Stef Walter [Wed, 18 Apr 2012 13:06:20 +0000 (15:06 +0200)]
Update Gio/GLib/GObject annotations

Ran misc/update-glib-annotations.py against current glib master.

12 years agoannotationparser: add test for comment lines not starting with ' * '
Dieter Verfaillie [Tue, 17 Apr 2012 18:58:08 +0000 (20:58 +0200)]
annotationparser: add test for comment lines not starting with ' * '

https://bugzilla.gnome.org/show_bug.cgi?id=673806

12 years agoannotationparser: cleanup and add tests for the new warnings we now emit
Dieter Verfaillie [Tue, 17 Apr 2012 20:23:14 +0000 (22:23 +0200)]
annotationparser: cleanup and add tests for the new warnings we now emit

Including:
- handle things in the logical order encountered (first colon,
  then annotations)
- correctly report column when missing a colon on the identifier part
- small type fixes
- remove no longer useful "parameter/tag expected" warnings

12 years agowarningtester: make it possible to EXPECT multiple lines of output
Dieter Verfaillie [Tue, 17 Apr 2012 20:31:56 +0000 (22:31 +0200)]
warningtester: make it possible to EXPECT multiple lines of output

12 years agoRevert "annotationparser: indent _parse_comment_block gtkdoc code"
Dieter Verfaillie [Tue, 17 Apr 2012 18:58:53 +0000 (20:58 +0200)]
Revert "annotationparser: indent _parse_comment_block gtkdoc code"

This reverts commit f41525d54f53edd9b0d665397f7c6c755ee3616b and
adds a more complete solution as the original commit only handled
empty lines between the GTK-Doc comment block start token "/**" and
the identifier.

https://bugzilla.gnome.org/show_bug.cgi?id=673806

12 years agoupdate-glib-annotations: Set required environment variables
Colin Walters [Tue, 17 Apr 2012 20:22:17 +0000 (16:22 -0400)]
update-glib-annotations: Set required environment variables

Assume srcdir=builddir, so users don't have to set this.

12 years agoannotationparser: indent _parse_comment_block gtkdoc code
Alban Browaeys [Mon, 9 Apr 2012 23:06:45 +0000 (01:06 +0200)]
annotationparser: indent _parse_comment_block gtkdoc code

The current logic in _parse_comment_block of the annotationparser
check the identifier and use variables that only makes sense if a
result was returned (column_offset, original_line). This patch
indent the logic so it is only triggered if a result is found.
Otherwise it returns None as expected by call chain
"parse >  parse_comment_block > _parse_comment_block":
ie in "parse":
   comment_block = self.parse_comment_block(comment)
   if comment_block is not None:

This still raises a lot of warnings but does not abort while generating
gir for libgnomekbd, mutter or telepathy-glib (those thus have to be
tweaked not to call g-ir-scanner with --warn-error at least until the
parser mask those false positives or the doc from those projects is
fixed to comply with the behaviour expected by giscanner).

https://bugzilla.gnome.org/show_bug.cgi?id=673806

12 years agoMove libffi and gmodule to Requires.private in .pc files
Kalev Lember [Fri, 13 Apr 2012 15:30:30 +0000 (18:30 +0300)]
Move libffi and gmodule to Requires.private in .pc files

The intention of the change is to clean up unnecessary linking with
libffi and gmodule in g-i consumers as they typically don't use any
libffi/gmodule symbols.

Listing libffi and gmodule in pkg-config Requires meant that every
consumer that wanted to link with -lgirepository also got -lffi and
-lgmodule-2.0, which caused ld to emit unnecessary DT_NEEDED entries.

Moving the deps to Requires.private removes the internal dependencies
from 'pkg-config --libs', but keeps them in --libs --static output. The
change won't affect --cflags and the include directories necessary for
<ffi.h> will still be listed.

https://bugzilla.gnome.org/show_bug.cgi?id=674065

12 years agoDon't link with gthread-2.0
Kalev Lember [Fri, 13 Apr 2012 15:20:17 +0000 (18:20 +0300)]
Don't link with gthread-2.0

Commit 2fff986 removed the use of g_thread_init() and we don't use any
other symbols from gthread-2.0.

https://bugzilla.gnome.org/show_bug.cgi?id=674065

12 years agoMake introspection compile with -Wall -Werror
Johan Dahlin [Mon, 9 Apr 2012 17:19:23 +0000 (14:19 -0300)]
Make introspection compile with -Wall -Werror

Address all gcc warnings, -Werror is not enabled yet but at least
-Wall -Werror passes on my machine.

12 years agoCompare filenames using g_file_equal()
Johan Dahlin [Mon, 9 Apr 2012 15:24:49 +0000 (12:24 -0300)]
Compare filenames using g_file_equal()

Makes it work on case-sensitive file systems such as HFS+.

https://bugzilla.gnome.org/show_bug.cgi?id=667405

12 years agoPass in LDFLAGS to the dumper
Johan Dahlin [Mon, 9 Apr 2012 15:12:00 +0000 (12:12 -0300)]
Pass in LDFLAGS to the dumper

We should honor LDFLAGS environment variable set by the user,
so options such as -Wl,--enable-new-dtags properly get passed to
the linker when creating the dumper binary

https://bugzilla.gnome.org/show_bug.cgi?id=670152

12 years agoannotationparser: split validate() into sub-methods
Will Thompson [Mon, 27 Feb 2012 18:08:29 +0000 (18:08 +0000)]
annotationparser: split validate() into sub-methods

Most cases in validate() were already simply calls to _validate_option()
with particular arguments; this extracts the code from the remaining
options to their own methods, making the dispatch table more legible.

https://bugzilla.gnome.org/show_bug.cgi?id=670985

12 years agoannotationparser: correct "maximium" in error messages
Will Thompson [Mon, 27 Feb 2012 17:52:30 +0000 (17:52 +0000)]
annotationparser: correct "maximium" in error messages

"Maximium" is not an English word. Even if corrected to "maximum" (which
is), "at maximum" is not conventional usage: "at most" is more
idiomatic.

https://bugzilla.gnome.org/show_bug.cgi?id=670985

12 years agoannotationparser: remove duplication of annotation names
Will Thompson [Mon, 27 Feb 2012 17:37:35 +0000 (17:37 +0000)]
annotationparser: remove duplication of annotation names

Previously, the validation code compared each option name to a constant
(such as OPT_ALLOW_NONE) which expands to the string used in a source
file, and if they matched it would typically pass that same string to
_validate_option(). But the annotation name was written out longhand
each time, which seemed strange to me.

https://bugzilla.gnome.org/show_bug.cgi?id=670985

12 years agogiscanner: Don't run pkg-config when there's no packages specified
Jasper St. Pierre [Tue, 27 Mar 2012 16:18:54 +0000 (13:18 -0300)]
giscanner: Don't run pkg-config when there's no packages specified

This prevents a simple error from pkg-config, "Must specify package names
on command line"

https://bugzilla.gnome.org/show_bug.cgi?id=673668

12 years agoAvoid _get_func() consuming reference from input info
Pavel Holejsovsky [Sat, 31 Mar 2012 17:12:48 +0000 (19:12 +0200)]
Avoid _get_func() consuming reference from input info

Fix of leak in 4c9424e18d71237f438a99bc5f2d45ae7de60b78 was a bit
overaggressive, stealing also one reference from input 'info'
argument.

Also fixes another bug in that commit - local 'func' shadowing the
return value, causing that function always returned NULL even when
some result was actually found.

https://bugzilla.gnome.org/show_bug.cgi?id=673282

12 years agoSplit parameter and tag storage in annotationparser parse tree
Dieter Verfaillie [Thu, 5 Apr 2012 21:15:31 +0000 (23:15 +0200)]
Split parameter and tag storage in annotationparser parse tree

This avoids tags overwriting parameters if they happen to
share the same name. For example, this was triggered by
valid code in libgnome-keyring.

tests/scanner/regress.c and tests/scanner/regress.h test
written by Colin Walters <walters@verbum.org>.

https://bugzilla.gnome.org/show_bug.cgi?id=672254

12 years agoDon't extract annotations from headers
Johan Dahlin [Thu, 5 Apr 2012 17:24:33 +0000 (14:24 -0300)]
Don't extract annotations from headers

The headers are already parsed as they are passed
in to g-ir-scanner. This avoids quite a few warnings triggered
with the new annotation parser.

12 years agoUpdate annotations from git.
Johan Dahlin [Thu, 5 Apr 2012 17:26:18 +0000 (14:26 -0300)]
Update annotations from git.

This removes also all the headers as it's the first run
with the updated extraction tool.

12 years agoDo the filename filtering in scannerlexer
Johan Dahlin [Thu, 5 Apr 2012 17:12:11 +0000 (14:12 -0300)]
Do the filename filtering in scannerlexer

This avoids a bit of python work and reduces the
amount of allocations.

12 years agoDon't parse doc comments in dependencies
Johan Dahlin [Thu, 5 Apr 2012 14:23:13 +0000 (11:23 -0300)]
Don't parse doc comments in dependencies

Only parse doc comments for the files we pass in
on the command line to g-ir-scanner, not the included dependencies.

12 years agoReplace ''' with """, to avoid confusing syntax highlightning in emacs
Johan Dahlin [Thu, 5 Apr 2012 13:43:42 +0000 (10:43 -0300)]
Replace ''' with """, to avoid confusing syntax highlightning in emacs

12 years agoFix malformed GTK-Doc comment blocks:
Dieter Verfaillie [Tue, 3 Apr 2012 05:47:48 +0000 (07:47 +0200)]
Fix malformed GTK-Doc comment blocks:

- add missing colons
- invalid annotations
- invalid parameters and tags
- correct parameter name
- preserve description indentation
- no description parts
- comment end marker
- invalid empty lines
- line numbers

AnnotationParser now emits warnings which are considered as
errors by "make check" so fix those warnings...

https://bugzilla.gnome.org/show_bug.cgi?id=672254

12 years agoNow make AnnotationParser do what gobject-introspection needs it to do.
Dieter Verfaillie [Tue, 3 Apr 2012 06:08:45 +0000 (08:08 +0200)]
Now make AnnotationParser do what gobject-introspection needs it to do.

https://bugzilla.gnome.org/show_bug.cgi?id=672254

12 years agoUpdate GLib annotations, using the improved annotation parser.
Dieter Verfaillie [Wed, 4 Apr 2012 15:10:40 +0000 (17:10 +0200)]
Update GLib annotations, using the improved annotation parser.

https://bugzilla.gnome.org/show_bug.cgi?id=672254

12 years agoupdate-glib-annotations.py: reduce code duplication
Dieter Verfaillie [Mon, 2 Apr 2012 15:42:22 +0000 (17:42 +0200)]
update-glib-annotations.py: reduce code duplication

https://bugzilla.gnome.org/show_bug.cgi?id=672254

12 years agoMake AnnotationParser._parse_comment() do what gtk-doc does.
Dieter Verfaillie [Tue, 3 Apr 2012 05:56:47 +0000 (07:56 +0200)]
Make AnnotationParser._parse_comment() do what gtk-doc does.

https://bugzilla.gnome.org/show_bug.cgi?id=672254

12 years agoDon't munch /* and */ comment start and end markers.
Dieter Verfaillie [Mon, 19 Mar 2012 08:23:22 +0000 (09:23 +0100)]
Don't munch /* and */ comment start and end markers.

In Sandro Sigala's original c-c++-grammars code, this function
was known as "static void skip_comment(void)". It was built this
way instead of a lex pattern because it didn't need to save the
matched comment in the "yytext" buffer. This is still true as
we directly assign the matched comment to the scanner object.
So simply prepend and append the markers back where they belong.

https://bugzilla.gnome.org/show_bug.cgi?id=672254

12 years agoAdd comment documenting we're ignoring C++ style comments.
Dieter Verfaillie [Mon, 19 Mar 2012 08:17:28 +0000 (09:17 +0100)]
Add comment documenting we're ignoring C++ style comments.

https://bugzilla.gnome.org/show_bug.cgi?id=672254

12 years agoUpdate glib annotations from git
Rico Tzschichholz [Mon, 2 Apr 2012 06:18:02 +0000 (08:18 +0200)]
Update glib annotations from git

12 years agoAdd tests for vfuncs with callbacks as arguments
Tomeu Vizoso [Tue, 21 Feb 2012 14:28:14 +0000 (15:28 +0100)]
Add tests for vfuncs with callbacks as arguments

https://bugzilla.gnome.org/show_bug.cgi?id=663052

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
12 years agoMake g_callable_info_invoke public
Tomeu Vizoso [Sun, 30 Oct 2011 15:31:23 +0000 (16:31 +0100)]
Make g_callable_info_invoke public

So it can be used for invoking callbacks

https://bugzilla.gnome.org/show_bug.cgi?id=663052

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
12 years agoAdd regression tests for GHashTable holding GValue
Alberto Mardegan [Wed, 21 Mar 2012 15:01:31 +0000 (19:01 +0400)]
Add regression tests for GHashTable holding GValue

Add a couple of functions which can be used to test
marshalling/demarshalling of GHashTables having GValue as keys.

This is related to a python-gobject bug:
https://bugzilla.gnome.org/show_bug.cgi?id=668903

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
12 years agoRelease 1.32.0 GOBJECT_INTROSPECTION_1_32_0
Colin Walters [Tue, 27 Mar 2012 15:07:42 +0000 (11:07 -0400)]
Release 1.32.0

12 years agoRelease 1.31.22 GOBJECT_INTROSPECTION_1_31_22
Colin Walters [Wed, 21 Mar 2012 13:59:03 +0000 (09:59 -0400)]
Release 1.31.22

12 years agoUpdate glib annotations to 2.31.22
Rico Tzschichholz [Tue, 20 Mar 2012 18:54:18 +0000 (19:54 +0100)]
Update glib annotations to 2.31.22

12 years agoconfigure: Comment why doctool is disabled by default for now
Colin Walters [Thu, 15 Mar 2012 15:45:19 +0000 (11:45 -0400)]
configure: Comment why doctool is disabled by default for now

12 years agog-ir-doc-tool: Fix -o option, use abspath instead of dirname
Tomeu Vizoso [Thu, 15 Mar 2012 15:36:39 +0000 (16:36 +0100)]
g-ir-doc-tool: Fix -o option, use abspath instead of dirname

12 years agoscanner: Remove array fields from List.clone()
Jesse van den Kieboom [Wed, 11 Jan 2012 15:47:01 +0000 (16:47 +0100)]
scanner: Remove array fields from List.clone()

These were apparently copied by mistake.

https://bugzilla.gnome.org/show_bug.cgi?id=667701

12 years agorepository: Remove extraneous leftover assignment to rvalue.
Michel Dänzer [Thu, 8 Mar 2012 12:25:57 +0000 (13:25 +0100)]
repository: Remove extraneous leftover assignment to rvalue.

Signed-off-by: Michel Dänzer <michel@daenzer.net>
https://bugzilla.gnome.org/show_bug.cgi?id=668902

12 years agoFix matching of methods named *_get_type()
Matthew Booth [Tue, 6 Mar 2012 14:57:01 +0000 (11:57 -0300)]
Fix matching of methods named *_get_type()

The code which heuristically turned functions into class methods would always
ignore any function called *_get_type or *_get_gtype. However, the code which
looked for GI metadata functions to execute them was much more comprehensive,
checking not just the name, but also that it had no parameters and that it
returned a GType.

This change abstracts the more comprehensive check into the Function class, and
uses the same check in both places.

https://bugzilla.gnome.org/show_bug.cgi?id=671218

12 years agorepository: Add new public gi_type_info_extract_ffi_return_value() API
Colin Walters [Thu, 16 Feb 2012 21:58:59 +0000 (16:58 -0500)]
repository: Add new public gi_type_info_extract_ffi_return_value() API

Dealing with FFI and return values is very tricky; this API allows
sharing the bits to do it between gobject-introspection and gjs (and
potentially other FFI binding consumers).

**NOTE** I swapped the order of the arguments, under the premise that
out arguments should generally be last.

https://bugzilla.gnome.org/show_bug.cgi?id=668902

12 years agorepository: Fix conversion of FFI values on big-endian architectures
Michel Dänzer [Thu, 16 Feb 2012 16:25:55 +0000 (11:25 -0500)]
repository: Fix conversion of FFI values on big-endian architectures

Adapted from the fixes for (see bug 665152). It makes sure values are
properly converted between glib and FFI, which is critical for big
endian architectures.

Patch adjusted to use GIArgument instead of custom union types
by Colin Walters <walters@verbum.org>

https://bugzilla.gnome.org/show_bug.cgi?id=668902

12 years agoRelease 2.31.20 GOBJECT_INTROSPECTION_1_31_20
Colin Walters [Mon, 5 Mar 2012 14:45:14 +0000 (09:45 -0500)]
Release 2.31.20

12 years agoUpdate glib annotations to 2.31.20
Colin Walters [Mon, 5 Mar 2012 14:44:18 +0000 (09:44 -0500)]
Update glib annotations to 2.31.20

12 years agointrospection.m4: Set enable_introspection to yes/no consistently
Colin Walters [Thu, 23 Feb 2012 16:13:29 +0000 (11:13 -0500)]
introspection.m4: Set enable_introspection to yes/no consistently

Some people want the ability to use it inside their configure scripts.

http://git.gnome.org/browse/totem/commit/?id=e57d75f555eaad98ec3eee31cf94336ba885174c

12 years agog-ir-doc-tool: Add missing files
Rico Tzschichholz [Wed, 22 Feb 2012 22:41:30 +0000 (23:41 +0100)]
g-ir-doc-tool: Add missing files

12 years agotests: Fix make dist
Rico Tzschichholz [Tue, 21 Feb 2012 17:45:32 +0000 (18:45 +0100)]
tests: Fix make dist

12 years agog-ir-doc-tool: Remove class structs from Python docs
Tomeu Vizoso [Tue, 21 Feb 2012 17:16:00 +0000 (18:16 +0100)]
g-ir-doc-tool: Remove class structs from Python docs

12 years agog-ir-doc-tool: Add support for virtual functions
Tomeu Vizoso [Tue, 21 Feb 2012 17:04:13 +0000 (18:04 +0100)]
g-ir-doc-tool: Add support for virtual functions

12 years agog-ir-doc-tool: Add a method in the tests
Tomeu Vizoso [Tue, 21 Feb 2012 16:17:17 +0000 (17:17 +0100)]
g-ir-doc-tool: Add a method in the tests

12 years agog-ir-doc-tool: Update .gitignore
Tomeu Vizoso [Tue, 21 Feb 2012 15:54:05 +0000 (16:54 +0100)]
g-ir-doc-tool: Update .gitignore

12 years agog-ir-doc-tool: Remove constructors from python docs
Tomeu Vizoso [Tue, 21 Feb 2012 15:52:04 +0000 (16:52 +0100)]
g-ir-doc-tool: Remove constructors from python docs

12 years agog-ir-doc-tool: Add class to its own hierarchy tree
Tomeu Vizoso [Tue, 21 Feb 2012 15:41:21 +0000 (16:41 +0100)]
g-ir-doc-tool: Add class to its own hierarchy tree

12 years agog-ir-doc-tool: Add tests for signals
Tomeu Vizoso [Tue, 21 Feb 2012 15:36:34 +0000 (16:36 +0100)]
g-ir-doc-tool: Add tests for signals

12 years agog-ir-doc-tool: Add the first argument of signals to the Python docs
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

12 years agog-ir-doc-tool: Create a GIR file specific for testing doc generation
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.

12 years agobuild: Add --enable-doctool option
Colin Walters [Tue, 21 Feb 2012 15:41:52 +0000 (10:41 -0500)]
build: Add --enable-doctool option

12 years agog-ir-doc-tool: Update expected tests
Rico Tzschichholz [Tue, 21 Feb 2012 09:21:25 +0000 (10:21 +0100)]
g-ir-doc-tool: Update expected tests

12 years agoUpdate annotations for GLib 2.31.18
Rico Tzschichholz [Tue, 21 Feb 2012 09:11:48 +0000 (10:11 +0100)]
Update annotations for GLib 2.31.18

12 years agog-ir-doc-tool: Add enum templates to the Makefile
Tomeu Vizoso [Mon, 20 Feb 2012 17:43:01 +0000 (18:43 +0100)]
g-ir-doc-tool: Add enum templates to the Makefile

12 years agog-ir-doc-tool: Add missing file: giscanner/mallard-C-enum.tmpl
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

12 years agog-ir-doc-tool: Change the -o option to receive a directory
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