gnome.gobject-introspection
15 years agotypelib building: Compress 5 arguments for g_ir_node_build_typelib
Colin Walters [Fri, 20 Feb 2009 16:05:53 +0000 (11:05 -0500)]
typelib building: Compress 5 arguments for g_ir_node_build_typelib

This makes it easier to add more over time without changing lots
of unrelated code.

15 years agoBug 572423 - Support --c-include argument for specifying C headers
Colin Walters [Thu, 19 Feb 2009 22:52:22 +0000 (17:52 -0500)]
Bug 572423 - Support --c-include argument for specifying C headers

This option is for specifying inside the .gir what C header files should
be included by C consumers (as opposed to parsed by the scanner).

15 years agoSend in an empty list instead of None.
Johan Dahlin [Fri, 20 Feb 2009 12:50:01 +0000 (09:50 -0300)]
Send in an empty list instead of None.

15 years agogiscanner: Set Python exceptions on type errors instead of g_assert
Colin Walters [Thu, 19 Feb 2009 23:38:27 +0000 (18:38 -0500)]
giscanner: Set Python exceptions on type errors instead of g_assert

This gives us nice stack traces.

15 years agoImprove type checking
Johan Dahlin [Thu, 19 Feb 2009 23:25:04 +0000 (20:25 -0300)]
Improve type checking

15 years agoAdd a hall of shame comment
Johan Dahlin [Thu, 19 Feb 2009 22:50:36 +0000 (19:50 -0300)]
Add a hall of shame comment

15 years agoBug 572075 - Make the scanner work with static and convenience libraries
Owen W. Taylor [Mon, 16 Feb 2009 21:52:52 +0000 (16:52 -0500)]
Bug 572075 - Make the scanner work with static and convenience libraries

We need to reference the get_type() functions we are going to dlsym
or otherwise the linker may not include them in the introspection
binary.

giscanner/dumper.py: Accept a list of _get_type() functions
  and write an array referencing them into the introspection
  binary.
giscanner/glibtransformer.py: Break parsing into too stages -
 the stage where we compute the _get_type() functions and the
 stage where we invoke the introspection binary.
tools/g-ir-scanner: Pass _get_type() functions from the
 scanner when creating the introspection binary.

http://bugzilla.gnome.org/show_bug.cgi?id=572075

15 years agoRemove gtk-doc.m4, should be installed by autogen
Colin Walters [Thu, 19 Feb 2009 16:23:32 +0000 (11:23 -0500)]
Remove gtk-doc.m4, should be installed by autogen

15 years agoFurther cleanup for commented-out Union discriminator handling
Colin Walters [Thu, 19 Feb 2009 16:18:48 +0000 (11:18 -0500)]
Further cleanup for commented-out Union discriminator handling

15 years agoBug 563382 - Define PATH_MAX if not available
Colin Walters [Fri, 13 Feb 2009 20:10:21 +0000 (15:10 -0500)]
Bug 563382 - Define PATH_MAX if not available

This fixes the build on Hurd.  If anyone ever actually uses Hurd with
filenames longer than 4096, they can open a new bug.

15 years agoFix bad merge introduced in commit b006d50
Colin Walters [Thu, 19 Feb 2009 14:56:20 +0000 (09:56 -0500)]
Fix bad merge introduced in commit b006d50

15 years agoBug 571373 - Add padding to typelib objects
Colin Walters [Thu, 12 Feb 2009 20:17:25 +0000 (15:17 -0500)]
Bug 571373 - Add padding to typelib objects

Expand various typelib objects to ensure we have at least 16 bits
left for each one to add another string indirection or directory offset,
and also that we have at least a few bits for more flags.

15 years agoBug 571373 - Remove hardcoded sizes/offsets in girnode.c
Colin Walters [Thu, 12 Feb 2009 04:53:05 +0000 (23:53 -0500)]
Bug 571373 - Remove hardcoded sizes/offsets in girnode.c

Where appropriate we now use G_STRUCT_OFFSET and sizeof()
instead of hardcoded integers.  Add comments for some special
cases.

15 years agoBug 571373 - Remove hardcoded offsets in ginfo.c
Colin Walters [Thu, 12 Feb 2009 04:51:28 +0000 (23:51 -0500)]
Bug 571373 - Remove hardcoded offsets in ginfo.c

In a few places we had hardcoded sizes for accessing structure members
and computing into variable size arrays.  Remove those.

15 years agoBug 571373 - Consistently use sizeof () inside gtypelib and girmodule
Colin Walters [Thu, 12 Feb 2009 04:36:31 +0000 (23:36 -0500)]
Bug 571373 - Consistently use sizeof () inside gtypelib and girmodule

This not only makes it easier to change these structures, it becomes
clearer exactly what each magic number is just for reference.

15 years agoBug 571373 - Move typelib docs from typelib-format.txt into girepository.h
Colin Walters [Thu, 12 Feb 2009 01:46:59 +0000 (20:46 -0500)]
Bug 571373 - Move typelib docs from typelib-format.txt into girepository.h

typelib-format.txt was growing out of date; a good solution to this is
to move it closer to the code it's documenting.  By doing this we also
gain the ability to use gtk-doc on it.

15 years agoFix SUBDIRS order, call gnome-autogen.sh with COMMON_DOC_BUILD
Colin Walters [Thu, 19 Feb 2009 02:35:04 +0000 (21:35 -0500)]
Fix SUBDIRS order, call gnome-autogen.sh with COMMON_DOC_BUILD

The latter option seems to be what others are doing, so we do too.

15 years agogtk-doc fixes: Require 1.10, fix --name-space argument typo, change Typelib section...
Colin Walters [Wed, 18 Feb 2009 19:18:45 +0000 (14:18 -0500)]
gtk-doc fixes: Require 1.10, fix --name-space argument typo, change Typelib section title

15 years agoRemove generated tmpl/ directory; we will use inline section comments
Colin Walters [Wed, 18 Feb 2009 18:24:21 +0000 (13:24 -0500)]
Remove generated tmpl/ directory; we will use inline section comments

The gtk-doc manual suggests using inline comments:
http://library.gnome.org/devel/gtk-doc-manual/stable/documenting.html.en

So we'll do that.

15 years agoVarious gtk-doc fixes: only require 1.11, remove generated files, add docs to SUBDIRS
Colin Walters [Wed, 18 Feb 2009 17:34:39 +0000 (12:34 -0500)]
Various gtk-doc fixes: only require 1.11, remove generated files, add docs to SUBDIRS

The gtk-doc introductory commit introduced some generated files; remove those.

We apparently only require 1.11, so downgrade to that.

Finally, the docs directory was missing from the toplevel SUBDIRS.

15 years agoFollowup to bug 567906 - Redo option filtering logic to be a bit cleaner
Colin Walters [Tue, 17 Feb 2009 23:07:51 +0000 (18:07 -0500)]
Followup to bug 567906 - Redo option filtering logic to be a bit cleaner

This was suggested during a refactoring of the affected code for
bug 567906.

15 years agoBug 571483 - Sort toplevel .gir entries
Colin Walters [Thu, 12 Feb 2009 15:12:01 +0000 (10:12 -0500)]
Bug 571483 - Sort toplevel .gir entries

This ensures we're stable on a macro level.

15 years agoMerge branch 'master' of ssh://walters@git.gnome.org/git/gobject-introspection
Colin Walters [Tue, 17 Feb 2009 21:59:48 +0000 (16:59 -0500)]
Merge branch 'master' of ssh://walters@git.gnome.org/git/gobject-introspection

15 years agoUnref the GIBaseInfo after usage
Johan Dahlin [Tue, 17 Feb 2009 21:24:45 +0000 (18:24 -0300)]
Unref the GIBaseInfo after usage

15 years agoAdd a simple invokation example
Johan Dahlin [Tue, 17 Feb 2009 21:23:25 +0000 (18:23 -0300)]
Add a simple invokation example

15 years agoMerge commit 'origin'
Johan Dahlin [Tue, 17 Feb 2009 18:01:14 +0000 (15:01 -0300)]
Merge commit 'origin'

15 years agoMerge branch 'master' of ssh://walters@git.gnome.org/git/gobject-introspection
Colin Walters [Tue, 17 Feb 2009 18:00:58 +0000 (13:00 -0500)]
Merge branch 'master' of ssh://walters@git.gnome.org/git/gobject-introspection

15 years agoAdd missing tab
Johan Dahlin [Tue, 17 Feb 2009 17:58:06 +0000 (14:58 -0300)]
Add missing tab

15 years agoParse doc-comment tags case-insensitive
Owen W. Taylor [Mon, 16 Feb 2009 23:23:25 +0000 (18:23 -0500)]
Parse doc-comment tags case-insensitive

gtk-doc treats tags like 'Return value:' or 'Since:' as case-insensitive,
do the same to make things as predictable as possibe and avoid strange
problems where a 'Return Value:' tag work with gtk-doc but not
g-ir-scanner.

http://bugzilla.gnome.org/show_bug.cgi?id=572086

15 years agoSet LD_LIBRARY_PATH for girepository-1.0
Johan Dahlin [Tue, 17 Feb 2009 14:15:52 +0000 (11:15 -0300)]
Set LD_LIBRARY_PATH for girepository-1.0

This is needed when girepository-1.0 is not installed
and thus not in the library path.

15 years agoMerge commit 'origin'
Johan Dahlin [Tue, 17 Feb 2009 00:58:11 +0000 (21:58 -0300)]
Merge commit 'origin'

15 years agoAdd allow-none for operation in g_mount_volume
David Ignacio [Tue, 17 Feb 2009 00:57:35 +0000 (21:57 -0300)]
Add allow-none for operation in g_mount_volume

15 years agoAdd more types to GL-1.0.gir
Owen W. Taylor [Mon, 16 Feb 2009 21:51:13 +0000 (16:51 -0500)]
Add more types to GL-1.0.gir

Add dummy definitions for:
  GLboolean, GLintptr, GLsizeiptr

15 years agoAvoid a couple of gtk-doc warnings
Johan Dahlin [Sat, 14 Feb 2009 19:17:48 +0000 (17:17 -0200)]
Avoid a couple of gtk-doc warnings

Do this by including the generated annotation
glossary.

15 years agoMerge branch 'master' of ssh://walters@git.gnome.org/git/gobject-introspection
Colin Walters [Fri, 13 Feb 2009 16:25:23 +0000 (11:25 -0500)]
Merge branch 'master' of ssh://walters@git.gnome.org/git/gobject-introspection

15 years agoBug 571182 – introspection.m4 issues
Johan Dahlin [Fri, 13 Feb 2009 01:50:59 +0000 (23:50 -0200)]
Bug 571182 – introspection.m4 issues

Adds the introspection.m4 file to gobject-introspection.
This is meant to be used by third-party libraries.

15 years agoBegin to document the GIR format
Johan Dahlin [Thu, 12 Feb 2009 22:35:35 +0000 (20:35 -0200)]
Begin to document the GIR format

15 years agoFix build
Robert Carr [Thu, 12 Feb 2009 14:51:16 +0000 (09:51 -0500)]
Fix build

15 years agoAdd gtk-doc support
Johan Dahlin [Thu, 12 Feb 2009 03:32:25 +0000 (01:32 -0200)]
Add gtk-doc support

15 years agoAdd an empty ChangeLog to make autogen.sh quiet
Johan Dahlin [Thu, 12 Feb 2009 01:14:09 +0000 (23:14 -0200)]
Add an empty ChangeLog to make autogen.sh quiet

15 years agoBug 567906 - Put pkg-config dependencies in .gir files
Colin Walters [Thu, 5 Feb 2009 22:36:35 +0000 (17:36 -0500)]
Bug 567906 - Put pkg-config dependencies in .gir files

When generating a .gir file, we now first parse all of our .gir includes
to pick up their <package> headers.  Then, we merge that with the set of
--pkg arguments passed to us, run pkg-config to gather the arguments,
and finally save the merged pkg-config list to our new .gir file.

This is useful for software which needs to map from .gir to pkg-config
in a programmatic way.

15 years agoPush the tags to the remote host when doing the release
Johan Dahlin [Wed, 11 Feb 2009 19:19:00 +0000 (17:19 -0200)]
Push the tags to the remote host when doing the release

15 years agoRename ChangeLog to ChangeLog.pre-git
Johan Dahlin [Wed, 11 Feb 2009 19:09:33 +0000 (17:09 -0200)]
Rename ChangeLog to ChangeLog.pre-git

15 years agoAdd a .gitignore file
Johan Dahlin [Wed, 11 Feb 2009 19:03:10 +0000 (17:03 -0200)]
Add a .gitignore file

15 years agoAdd missing self parameter
Johan Dahlin [Wed, 11 Feb 2009 18:59:17 +0000 (16:59 -0200)]
Add missing self parameter

This is really why you shouldn't catch TypeError.

15 years agoUpdate release-tag target
Johan Dahlin [Wed, 11 Feb 2009 18:53:51 +0000 (16:53 -0200)]
Update release-tag target

15 years agoRemove trailing whitespace
Johan Dahlin [Wed, 11 Feb 2009 18:23:35 +0000 (16:23 -0200)]
Remove trailing whitespace

15 years agoBug 571248 - Ignore unknown elements in girparser
Colin Walters [Wed, 11 Feb 2009 00:08:49 +0000 (00:08 +0000)]
Bug 571248 - Ignore unknown elements in girparser

We want the gir to be extensible.

svn path=/trunk/; revision=1096

15 years agoBug 569633 – Typelib compiler fails with vararg callbacks
Rober Carr [Tue, 10 Feb 2009 23:34:04 +0000 (23:34 +0000)]
Bug 569633 – Typelib compiler fails with vararg callbacks

2009-02-10  Rober Carr <carrr@rpi.edu>

Bug 569633 – Typelib compiler fails with vararg callbacks

* girepository/girparser.c: Also filter out callback functions
which take vararg arguments.

svn path=/trunk/; revision=1095

15 years agoRename namespace to namespace_ to make the header compilable with a C++ compiler
Johan Dahlin [Tue, 10 Feb 2009 21:01:08 +0000 (21:01 +0000)]
Rename namespace to namespace_ to make the header compilable with a C++ compiler

svn path=/trunk/; revision=1094

15 years agoForgot to update ChangeLog.
Xan Lopez [Mon, 9 Feb 2009 23:27:27 +0000 (23:27 +0000)]
Forgot to update ChangeLog.

svn path=/trunk/; revision=1093

15 years agog-ir-scanner.1: add information about include paths for source files.
Xan Lopez [Sun, 8 Feb 2009 08:49:46 +0000 (08:49 +0000)]
g-ir-scanner.1: add information about include paths for source files.

svn path=/trunk/; revision=1092

15 years agoAdd KeySym and KeyCode to xlib-2.0.gir.
Owen Taylor [Fri, 6 Feb 2009 21:11:11 +0000 (21:11 +0000)]
Add KeySym and KeyCode to xlib-2.0.gir.

gir/xlib-2.0.gir: Add dummy definitions for KeySym and KeyCode
to the dummy xlib-2.0.gir.

svn path=/trunk/; revision=1091

15 years agoMake .tgir diffs fail the check
Colin Walters [Fri, 6 Feb 2009 18:57:24 +0000 (18:57 +0000)]
Make .tgir diffs fail the check

svn path=/trunk/; revision=1090

15 years agoRemove extra space from foo-1.0-expected.tgir
Colin Walters [Fri, 6 Feb 2009 18:57:21 +0000 (18:57 +0000)]
Remove extra space from foo-1.0-expected.tgir

svn path=/trunk/; revision=1089

15 years agoBug 551738 - Associate classes with their structs
Colin Walters [Fri, 6 Feb 2009 18:37:13 +0000 (18:37 +0000)]
Bug 551738 - Associate classes with their structs

Inside glibtransformer, we now look at structures ending in "Class" and
see if they have an associated GlibObject (i.e. a structure of the same
name without the "Class" suffix).  If found, pair them up.

The .gir file for <class> gains an attribute denoting its associated
class struct.  Any <record> many now have a glib:is-class-struct-for
annotation which tells which (if any) <class> for which it defines the
layout.

In the .typelib, we record the association between the class and
its structure.  Generic structures however just have a boolean
saying whether they're a class struct.  (Going from a generic class
struct to its class should not be necessary).

Finally, we expose GIRepository APIs to access both bits of information
from the .typelib.

svn path=/trunk/; revision=1088

15 years agoBug 561360 - If we can't resolve parent class, use GObject
Colin Walters [Thu, 5 Feb 2009 22:43:39 +0000 (22:43 +0000)]
Bug 561360 - If we can't resolve parent class, use GObject

This enables us to support "hidden" parent classes.

svn path=/trunk/; revision=1087

15 years agoBug 561604 - Add test case for skipping va_list
Colin Walters [Thu, 5 Feb 2009 20:41:06 +0000 (20:41 +0000)]
Bug 561604 - Add test case for skipping va_list

svn path=/trunk/; revision=1086

15 years agogirnode.c: Fix copy & paste error
Colin Walters [Thu, 5 Feb 2009 18:00:00 +0000 (18:00 +0000)]
girnode.c: Fix copy & paste error

This line is almost certainly a copy & paste error.  It appears to be
harmless, but it's better to not have it.

svn path=/trunk/; revision=1085

15 years agoAdd utility functions for invocing closures given a GICallableInfo using
Johan Dahlin [Thu, 5 Feb 2009 00:40:14 +0000 (00:40 +0000)]
Add utility functions for invocing closures given a GICallableInfo using

2009-02-04  Johan Dahlin  <jdahlin@async.com.br>

    * girepository/Makefile.am:
    * girepository/girffi.c (g_callable_info_get_ffi_arg_types),
    (g_callable_info_get_ffi_return_type),
    (g_callable_info_prepare_closure), (g_callable_info_free_closure):
    * girepository/girffi.h:
    Add utility functions for invocing closures given a GICallableInfo
    using libffi.

svn path=/trunk/; revision=1084

15 years agoRemove outstanding FIXMEs for nested struct/union
Colin Walters [Wed, 4 Feb 2009 00:48:27 +0000 (00:48 +0000)]
Remove outstanding FIXMEs for nested struct/union

svn path=/trunk/; revision=1083

15 years agoBug 555960 - Nested structs and unions (generation portion)
Colin Walters [Wed, 4 Feb 2009 00:48:24 +0000 (00:48 +0000)]
Bug 555960 - Nested structs and unions (generation portion)

Patch from Andreas Rottmann <a.rottmann@gmx.at>.

* tests/scanner/utility.h (UtilityTaggedValue): Make the union
member anonymous.
(UtilityByte): New union typedef with an unnamed struct in it.

* giscanner/transformer.py (Transformer._create_struct): Create
unnamed structs for symbols with a None ident.
(Transformer._create_union): Likewise.

* giscanner/girwriter.py (GIRWriter._write_record): Allow name
being None.
(GIRWriter._write_union): Likewise.

* girepository/girparser.c (start_struct): Allow a NULL name for
non-toplevel structs.
(start_union): Likewise.

* tests/scanner/utility.h (UtilityTaggedValue): New struct
typedef, which has a nested union member.
* tests/scanner/utility-expected.gir: Adapted.

* giscanner/transformer.py (Transformer._create_member): Create
struct/union members if appropriate.
(Transformer._create_struct, Transformer._create_union): Allow for
structs/unions without a C type.

* giscanner/glibtransformer.py (GLibTransformer._resolve_field):
We don't need to resolve non-typef'd
(GLibTransformer._resolve_field): Add cases for non-typedef'd
struct/union "fields".

* giscanner/girwriter.py (GIRWriter._write_record): Allow for
records without a C type.
(GIRWriter._write_field): structs and unions may appear in places
where fields do.

svn path=/trunk/; revision=1082

15 years agoBug 555960 - nested structs and unions
Colin Walters [Wed, 4 Feb 2009 00:48:17 +0000 (00:48 +0000)]
Bug 555960 - nested structs and unions

Patch from Andreas Rottmann <a.rottmann@gmx.at>.

This change modifies the parser to hold a stack of nodes, instead of
a single concept of "current" node.  This allows the parser to recurse
into nested nodes.

svn path=/trunk/; revision=1081

15 years agohandle the special case for GObject, whose glib:get-type is listed as
Dan Winship [Mon, 2 Feb 2009 20:41:30 +0000 (20:41 +0000)]
handle the special case for GObject, whose glib:get-type is listed as

* girepository/ginfo.c (g_registered_type_info_get_g_type): handle
the special case for GObject, whose glib:get-type is listed as
"intern".

svn path=/trunk/; revision=1080

15 years agoBug 569408, Bug 568680 - Scanner misses fields (at least in GObject.Object)
Colin Walters [Mon, 2 Feb 2009 16:31:06 +0000 (16:31 +0000)]
Bug 569408, Bug 568680 - Scanner misses fields (at least in GObject.Object)

The scanner misses all fields of the GObject struct -- there
are no <field> children of the <class> element for GObject in the GIR. This of
course yields wrong field offsets for all derived objects.

svn path=/trunk/; revision=1079

15 years agoBug 563469 – Arrays not treated correctly in struct offset calculation
Colin Walters [Mon, 2 Feb 2009 16:31:02 +0000 (16:31 +0000)]
Bug 563469 – Arrays not treated correctly in struct offset calculation

Arrays are currently not handled specially, and hence treated as pointers in
giroffsets.c:get_field_size_alignment(), which is (obviously) wrong.

svn path=/trunk/; revision=1078

15 years agoUndo revision 1075
Robert Carr [Thu, 29 Jan 2009 10:43:05 +0000 (10:43 +0000)]
Undo revision 1075

svn path=/trunk/; revision=1077

15 years agoAdd xmlTextWriterPtr to libxml2-2.0 GIR.
Robert Carr [Thu, 29 Jan 2009 10:33:08 +0000 (10:33 +0000)]
Add xmlTextWriterPtr to libxml2-2.0 GIR.

svn path=/trunk/; revision=1076

15 years agopost_filter_varargs_functions should also filter callbacks. Add tests of
Robert Carr [Thu, 29 Jan 2009 10:32:25 +0000 (10:32 +0000)]
post_filter_varargs_functions should also filter callbacks. Add tests of

* girepository/girparser.c: post_filter_varargs_functions
  should also filter callbacks.
* tests/scanner/foo.h: Add tests of varargs callbacks.

svn path=/trunk/; revision=1075

15 years agoadd missing with_voidp
Johan Bilien [Wed, 28 Jan 2009 13:25:32 +0000 (13:25 +0000)]
add missing with_voidp

2009-01-28  Johan Bilien  <jobi@via.ecp.fr>

* tests/scanner/annotation-1.0-expected.gir: add missing
with_voidp

svn path=/trunk/; revision=1074

15 years agoRemove shared-library tags for these too.
Johan Dahlin [Wed, 28 Jan 2009 01:18:32 +0000 (01:18 +0000)]
Remove shared-library tags for these too.

2009-01-27  Johan Dahlin  <jdahlin@async.com.br>

        * gir/cairo-1.0.gir:
        * gir/fontconfig-2.0.gir:
        * gir/freetype2-2.0.gir:
        * gir/libxml2-2.0.gir:
        * gir/xfixes-4.0.gir:
        * gir/xft-2.0.gir:
        * gir/xlib-2.0.gir:
        Remove shared-library tags for these too.

svn path=/trunk/; revision=1073

15 years agoRemove shared-library which removes the build time dependency on mesa.
Johan Dahlin [Wed, 28 Jan 2009 00:54:51 +0000 (00:54 +0000)]
Remove shared-library which removes the build time dependency on mesa.

2009-01-27  Johan Dahlin  <jdahlin@async.com.br>

        * gir/GL-1.0.gir:
        Remove shared-library which removes the build
        time dependency on mesa.

svn path=/trunk/; revision=1072

15 years ago Misc warning fixes
Dan Winship [Tue, 27 Jan 2009 17:17:31 +0000 (17:17 +0000)]
Misc warning fixes

* giscanner/scannerparser.y: Fix the "Ignoring non-UTF-8 constant
string" error to print the right value.

* tests/scanner/annotation.c (backslash_parsing_tester)
(backslash_parsing_tester_2): make these non-static to avoid a
warning.
(annotation_object_string_out)
(annotation_string_zero_terminated): fix return values

* tests/scanner/annotation.h (annotation_object_with_voidp):
prototype this

* tests/scanner/gtkfrob.c:
* tests/scanner/gtkfrob.h (gtk_frob_language_manager_get_default):
fix prototype. (s/()/(void)/).

* tools/compiler.c (format_output): fix signed/unsigned warning.
Output a prototype for register_typelib() to avoid warnings later.

svn path=/trunk/; revision=1071

15 years agoAdd a couple of callback tests.
Johan Dahlin [Tue, 27 Jan 2009 00:34:02 +0000 (00:34 +0000)]
Add a couple of callback tests.

2009-01-26  Johan Dahlin  <jdahlin@async.com.br>

        * tests/everything/everything.c (test_callback):
        * tests/everything/everything.h:
        Add a couple of callback tests.

svn path=/trunk/; revision=1070

15 years agoRemove trailing whitespace
Johan Dahlin [Mon, 26 Jan 2009 22:29:22 +0000 (22:29 +0000)]
Remove trailing whitespace

svn path=/trunk/; revision=1069

15 years agoOnly unref the repository if it's actually set.
Johan Dahlin [Mon, 26 Jan 2009 17:56:48 +0000 (17:56 +0000)]
Only unref the repository if it's actually set.

2009-01-26  Johan Dahlin  <jdahlin@async.com.br>

        * girepository/ginfo.c (g_base_info_unref):
        Only unref the repository if it's actually set.

svn path=/trunk/; revision=1068

15 years agoAdd cairo_path_t to cairo-1.0.gir, required for building clutter 0.9 gir
Robert Carr [Sat, 24 Jan 2009 04:46:58 +0000 (04:46 +0000)]
Add cairo_path_t to cairo-1.0.gir, required for building clutter 0.9 gir

svn path=/trunk/; revision=1067

15 years agoAdd an enum param test function
Johan Dahlin [Fri, 23 Jan 2009 14:12:21 +0000 (14:12 +0000)]
Add an enum param test function

2009-01-23  Johan Dahlin  <jdahlin@async.com.br>

    * tests/everything/everything.c (test_enum_param):
    * tests/everything/everything.h:

    Add an enum param test function

svn path=/trunk/; revision=1066

15 years agoSkip over both g_object_get_type and g_initially_unowned_get_type
Colin Walters [Thu, 22 Jan 2009 16:17:42 +0000 (16:17 +0000)]
Skip over both g_object_get_type and g_initially_unowned_get_type

g_object_get_type hasn't always been in GObject,  we handle it internally
elsewhere.

svn path=/trunk/; revision=1065

15 years agoUse correct pkg-config arguments for each gir
Colin Walters [Thu, 22 Jan 2009 16:17:37 +0000 (16:17 +0000)]
Use correct pkg-config arguments for each gir

We should pass e.g. --pkg gobject-2.0 for GObject, and --pkg gio-2.0
for Gio to ensure that we're getting the right flags to the scanner,
even though girepository itself depends on these libraries.

svn path=/trunk/; revision=1064

15 years agoPost-release version bump
Johan Dahlin [Thu, 22 Jan 2009 01:00:21 +0000 (01:00 +0000)]
Post-release version bump

2009-01-21  Johan Dahlin  <jdahlin@async.com.br>

        * configure.ac:
        Post-release version bump

svn path=/trunk/; revision=1063

15 years ago0.6.2 GOBJECT_INTROSPECTION_0_6_2
Johan Dahlin [Thu, 22 Jan 2009 00:49:55 +0000 (00:49 +0000)]
0.6.2

svn path=/trunk/; revision=1061

15 years agoFix distcheck
Johan Dahlin [Thu, 22 Jan 2009 00:43:03 +0000 (00:43 +0000)]
Fix distcheck

svn path=/trunk/; revision=1059

15 years agoBug 562622 – Errordomains missing
Johan Dahlin [Thu, 22 Jan 2009 00:02:49 +0000 (00:02 +0000)]
Bug 562622 – Errordomains missing

2009-01-21  Johan Dahlin  <jdahlin@async.com.br>

        Bug 562622 – Errordomains missing

        * giscanner/girwriter.py:
        * giscanner/glibast.py:
        * giscanner/glibtransformer.py:
        * tests/scanner/Makefile.am:
        * tests/scanner/foo-1.0-expected.gir:
        * tests/scanner/foo-1.0-expected.tgir:
        * tests/scanner/foo.c (foo_error_get_type), (foo_error_quark):
        * tests/scanner/foo.h:

svn path=/trunk/; revision=1057

15 years agoIncrease the buffer size to 1M, so gtkalias.h can be parsed.
Johan Dahlin [Tue, 20 Jan 2009 23:59:44 +0000 (23:59 +0000)]
Increase the buffer size to 1M, so gtkalias.h can be parsed.

2009-01-20  Johan Dahlin  <jdahlin@async.com.br>

        * giscanner/scannerlexer.l:
        Increase the buffer size to 1M, so
        gtkalias.h can be parsed.

svn path=/trunk/; revision=1056

15 years agoWhen trying to map functions to structs, do not require a public structure
Johan Dahlin [Tue, 20 Jan 2009 22:34:41 +0000 (22:34 +0000)]
When trying to map functions to structs, do not require a public structure

2009-01-20  Johan Dahlin  <jdahlin@async.com.br>

        * giscanner/glibtransformer.py:
        When trying to map functions to structs, do
        not require a public structure to exist, should
        fix Gst gir generation in.

svn path=/trunk/; revision=1055

15 years agoBug 562615 – Struct methods missing
Johan Dahlin [Tue, 20 Jan 2009 20:41:52 +0000 (20:41 +0000)]
Bug 562615 – Struct methods missing

2009-01-20  Johan Dahlin  <jdahlin@async.com.br>

        Bug 562615 – Struct methods missing

        * giscanner/annotationparser.py:
        * giscanner/ast.py:
        * giscanner/girwriter.py:
        * giscanner/glibast.py:
        * giscanner/glibtransformer.py:
        * tests/scanner/foo-1.0-expected.gir:
        * tests/scanner/foo-1.0-expected.tgir:

svn path=/trunk/; revision=1054

15 years agoUgh, recurd->record
Johan Dahlin [Tue, 20 Jan 2009 20:26:42 +0000 (20:26 +0000)]
Ugh, recurd->record

svn path=/trunk/; revision=1053

15 years agoStruct -> Record
Johan Dahlin [Tue, 20 Jan 2009 20:22:23 +0000 (20:22 +0000)]
Struct -> Record

svn path=/trunk/; revision=1052

15 years agoadd back GLvoid, which got lost during the gir-repository ->
Dan Winship [Fri, 16 Jan 2009 16:20:26 +0000 (16:20 +0000)]
add back GLvoid, which got lost during the gir-repository ->

* gir/GL-1.0.gir: add back GLvoid, which got lost during the
gir-repository -> gobject-introspection migration

svn path=/trunk/; revision=1051

15 years agoadd FT_Int32 add XftFont Report errors when an invalid type is encountered
Johan Dahlin [Fri, 16 Jan 2009 00:42:22 +0000 (00:42 +0000)]
add FT_Int32 add XftFont Report errors when an invalid type is encountered

2009-01-15  Johan Dahlin  <jdahlin@async.com.br>

* gir/freetype2-2.0.gir: add FT_Int32
* gir/xft-2.0.gir: add XftFont
* girepository/gdump.c (g_irepository_dump):
Report errors when an invalid type is encountered
* giscanner/glibtransformer.py:
Make the error message a bit nicer.

Part of preparating for gir generating inside pango.

svn path=/trunk/; revision=1050

15 years agoFix pep8 complaints
Johan Dahlin [Thu, 15 Jan 2009 23:15:07 +0000 (23:15 +0000)]
Fix pep8 complaints

svn path=/trunk/; revision=1049

15 years agoChange libgirepository to libgirepository-1.0 here too
Johan Dahlin [Thu, 15 Jan 2009 23:10:35 +0000 (23:10 +0000)]
Change libgirepository to libgirepository-1.0 here too

svn path=/trunk/; revision=1048

15 years agoMove over the hand-written girs from gir-repository so upstream libraries
Johan Dahlin [Thu, 15 Jan 2009 23:08:10 +0000 (23:08 +0000)]
Move over the hand-written girs from gir-repository so upstream libraries

2009-01-15  Johan Dahlin  <jdahlin@async.com.br>

        * gir/GL-1.0.gir:
        * gir/Makefile.am:
        * gir/cairo-1.0.gir:
        * gir/fontconfig-2.0.gir:
        * gir/freetype2-2.0.gir:
        * gir/libxml2-2.0.gir:
        * gir/xfixes-4.0.gir:
        * gir/xft-2.0.gir:
        * gir/xlib-2.0.gir:

        Move over the hand-written girs from gir-repository
        so upstream libraries depending on these can avoid
        a gir-repository dependency.

svn path=/trunk/; revision=1047

15 years agoBug 567813 – Everything should be versioned
Johan Dahlin [Thu, 15 Jan 2009 22:31:07 +0000 (22:31 +0000)]
Bug 567813 – Everything should be versioned

2009-01-15  Johan Dahlin  <jdahlin@async.com.br>

        Bug 567813 – Everything should be versioned

        * gir/Makefile.am:
        * girepository/Makefile.am:
        * girepository/girepository.c (init_globals):
        * girepository/girparser.c (locate_gir):
        * giscanner/dumper.py:
        * giscanner/transformer.py:
        * gobject-introspection-1.0.pc.in:
        * tests/everything/Makefile.am:
        * tests/invoke/Makefile.am:
        * tests/offsets/Makefile.am:
        * tests/repository/Makefile.am:
        * tests/scanner/Makefile.am:
        * tools/Makefile.am:

svn path=/trunk/; revision=1046

15 years agoUpdate annotation syntax, remove trailing 8
Johan Dahlin [Thu, 15 Jan 2009 00:48:13 +0000 (00:48 +0000)]
Update annotation syntax, remove trailing 8

svn path=/trunk/; revision=1045

15 years agoUpdate annotation syntax
Johan Dahlin [Thu, 15 Jan 2009 00:47:53 +0000 (00:47 +0000)]
Update annotation syntax

svn path=/trunk/; revision=1044

15 years agoRemove drawable-injected
Johan Dahlin [Wed, 14 Jan 2009 21:54:51 +0000 (21:54 +0000)]
Remove drawable-injected

svn path=/trunk/; revision=1043

15 years agoindent
Johan Dahlin [Wed, 14 Jan 2009 21:43:11 +0000 (21:43 +0000)]
indent

svn path=/trunk/; revision=1042

15 years agoAnd the .gir files
Johan Dahlin [Wed, 14 Jan 2009 21:41:38 +0000 (21:41 +0000)]
And the .gir files

svn path=/trunk/; revision=1041