gnome.gobject-introspection
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

15 years agotest_strv_out transfer should actually be container, I am silly.
Robert Carr [Wed, 14 Jan 2009 21:41:34 +0000 (21:41 +0000)]
test_strv_out transfer should actually be container, I am silly.

svn path=/trunk/; revision=1040

15 years agoAdd missing trailing :
Johan Dahlin [Wed, 14 Jan 2009 21:34:10 +0000 (21:34 +0000)]
Add missing trailing :

svn path=/trunk/; revision=1039

15 years agoAdd a few more test-cases
Johan Dahlin [Wed, 14 Jan 2009 21:33:29 +0000 (21:33 +0000)]
Add a few more test-cases

svn path=/trunk/; revision=1038

15 years agoUpdate girs containing do not editing warning
Johan Dahlin [Wed, 14 Jan 2009 21:18:16 +0000 (21:18 +0000)]
Update girs containing do not editing warning

svn path=/trunk/; revision=1037

15 years agoRewrap to fit in 79 columns
Johan Dahlin [Wed, 14 Jan 2009 21:12:19 +0000 (21:12 +0000)]
Rewrap to fit in 79 columns

svn path=/trunk/; revision=1036

15 years agotest_strv_out should be (transfer full).
Robert Carr [Wed, 14 Jan 2009 20:37:44 +0000 (20:37 +0000)]
test_strv_out should be (transfer full).

svn path=/trunk/; revision=1035

15 years agoAdd generated file warning comment
Colin Walters [Wed, 14 Jan 2009 17:39:36 +0000 (17:39 +0000)]
Add generated file warning comment

We don't want people manually editing .gir files.

svn path=/trunk/; revision=1034

15 years agoClean up some abstraction breakage to reduce code duplication
Johan Dahlin [Tue, 13 Jan 2009 21:15:06 +0000 (21:15 +0000)]
Clean up some abstraction breakage to reduce code duplication

svn path=/trunk/; revision=1033

15 years agoBug 555036 – put gtk-doc in GIR
Johan Dahlin [Tue, 13 Jan 2009 21:13:00 +0000 (21:13 +0000)]
Bug 555036 – put gtk-doc in GIR

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

        Bug 555036 – put gtk-doc in GIR

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

svn path=/trunk/; revision=1032

15 years agoCatch AttributeError which seems to be occasionally raised for Record.
Johan Dahlin [Tue, 13 Jan 2009 14:44:38 +0000 (14:44 +0000)]
Catch AttributeError which seems to be occasionally raised for Record.

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

* giscanner/cachestore.py (CacheStore.load): Catch AttributeError
which seems to be occasionally raised for Record.

svn path=/trunk/; revision=1031

15 years agoAdd a list-signal test for using a GLib.List signal parameter
Johan Dahlin [Tue, 13 Jan 2009 13:14:26 +0000 (13:14 +0000)]
Add a list-signal test for using a GLib.List signal parameter

svn path=/trunk/; revision=1030

15 years agoFix a bug where \n was not present in a comment
Johan Dahlin [Tue, 13 Jan 2009 12:52:12 +0000 (12:52 +0000)]
Fix a bug where \n was not present in a comment

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

        * giscanner/annotationparser.py:
        Fix a bug where \n was not present in a comment

svn path=/trunk/; revision=1029

15 years agoOrganize annotation options/tags by using constants,
Johan Dahlin [Tue, 13 Jan 2009 01:28:28 +0000 (01:28 +0000)]
Organize annotation options/tags by using constants,
makes it easier to find which options we're already
implemented.

svn path=/trunk/; revision=1028

15 years agoBug 562467 – Property annotation
Johan Dahlin [Tue, 13 Jan 2009 00:02:24 +0000 (00:02 +0000)]
Bug 562467 – Property annotation

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

        Bug 562467 – Property annotation

        * giscanner/annotationparser.py:
        * tests/scanner/annotation-1.0-expected.gir:
        * tests/scanner/annotation-1.0-expected.tgir:
        * tests/scanner/annotation.c (annotation_object_set_property),
        (annotation_object_get_property), (annotation_object_class_init):

        Annotations are parsed for properties.

svn path=/trunk/; revision=1027

15 years agoBug 546739 – Introspection should know precise signal parameter types
Johan Dahlin [Mon, 12 Jan 2009 23:54:48 +0000 (23:54 +0000)]
Bug 546739 – Introspection should know precise signal parameter types

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

        Bug 546739 – Introspection should know precise signal parameter types

        * giscanner/annotationparser.py:
        * tests/scanner/annotation-1.0-expected.gir:
        * tests/scanner/annotation-1.0-expected.tgir:
        * tests/scanner/annotation.c (annotation_object_class_init):

        Annotations are parsed for signals, the (type) annotation is introduced.

svn path=/trunk/; revision=1026

15 years agoBug 563591 – Flags not recognized when there is no introspection data
Johan Dahlin [Mon, 12 Jan 2009 23:24:01 +0000 (23:24 +0000)]
Bug 563591 – Flags not recognized when there is no introspection data

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

        Bug 563591 – Flags not recognized when there is no introspection data

        * giscanner/ast.py:
        * giscanner/girwriter.py:
        * giscanner/giscannermodule.c (type_get_is_bitfield):
        * giscanner/glibast.py:
        * giscanner/glibtransformer.py:
        * giscanner/scannerparser.y:
        * giscanner/sourcescanner.c (gi_source_type_copy):
        * giscanner/sourcescanner.h:
        * giscanner/sourcescanner.py:
        * giscanner/transformer.py:
        * tests/scanner/foo-1.0-expected.gir:
        * tests/scanner/foo-1.0-expected.tgir:
        * tests/scanner/foo.h:

        Large parts of this patch was done by Jürg Billeter.

svn path=/trunk/; revision=1025

15 years agoBug 562914: Order GI_TYPELIB_PATH before anything else
Colin Walters [Mon, 12 Jan 2009 21:42:58 +0000 (21:42 +0000)]
Bug 562914: Order GI_TYPELIB_PATH before anything else

We want the environment variable to override so that people can
easily write scripts that run their programs uninstalled.

svn path=/trunk/; revision=1024

15 years agoBug 567212: Exit after dumping
Colin Walters [Mon, 12 Jan 2009 21:31:45 +0000 (21:31 +0000)]
Bug 567212: Exit after dumping

The intended use of g_irepository_get_option_group is that your
application more transparently supports --introspection-dump; we
should exit so that your app doesn't continue trying to launch.

svn path=/trunk/; revision=1023

15 years agoBug 567087 - generic marshaller
Colin Walters [Mon, 12 Jan 2009 21:31:43 +0000 (21:31 +0000)]
Bug 567087 - generic marshaller

Since GObject-Introspection depends on both ffi and GObject, it's
a convenient home for jdahlin's generic signal marshaller until
such time as GObject can directly depend on ffi.

When it gets added to GObject, we can simply point our marshaller
at that one.

svn path=/trunk/; revision=1022

15 years agoBug 563386 – scanner ignores "const" on boxed return values
Havoc Pennington [Mon, 12 Jan 2009 21:00:46 +0000 (21:00 +0000)]
Bug 563386 – scanner ignores "const" on boxed return values

2009-01-12  Havoc Pennington  <hp@pobox.com>

        Bug 563386 – scanner ignores "const" on boxed return values

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

        This adds just the tests specified in the bug above, the fix itself
        was included in Bug 563794

svn path=/trunk/; revision=1021

15 years agoBug 566404 – Annotations for GLib
Andreas Rottmann [Mon, 12 Jan 2009 20:57:02 +0000 (20:57 +0000)]
Bug 566404 – Annotations for GLib

2009-01-03  Andreas Rottmann  <a.rottmann@gmx.at>

Bug 566404 – Annotations for GLib

* gir/glib-2.0.c: Added allow-none annotations for g_thread_init()
and g_main_loop_new().

svn path=/trunk/; revision=1020

15 years agoBug 566419 – Element type of arrays not properly handled in all cases
Johan Dahlin [Mon, 12 Jan 2009 20:54:11 +0000 (20:54 +0000)]
Bug 566419 – Element type of arrays not properly handled in all cases

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

        Bug 566419 – Element type of arrays not properly handled in all cases

        * giscanner/annotationparser.py:
        * tests/scanner/annotation-1.0-expected.gir:
        * tests/scanner/annotation-1.0-expected.tgir:
        * tests/scanner/annotation.c (annotation_object_set_data),
        (annotation_object_set_data2), (annotation_object_set_data3):
        * tests/scanner/annotation.h:

        Based on patch by Andreas Rottmann

svn path=/trunk/; revision=1019

15 years agoBug 566560 – giscanner.transformer.SkipError
Johan Dahlin [Mon, 12 Jan 2009 20:16:33 +0000 (20:16 +0000)]
Bug 566560 – giscanner.transformer.SkipError

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

        Bug 566560 – giscanner.transformer.SkipError

        * giscanner/transformer.py:

        Catch SkipError for all nodes, not just functions.
        Makes it possible to skip unsupported parameter types in
        callbacks.

svn path=/trunk/; revision=1018

15 years agoBug 563794 - Redo annotation parsing & applying
Johan Dahlin [Mon, 12 Jan 2009 20:11:44 +0000 (20:11 +0000)]
Bug 563794 - Redo annotation parsing & applying

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

    Bug 563794 - Redo annotation parsing & applying

    Thanks to Colin for helping out considerably in landing this.

    * giscanner/Makefile.am:
    * giscanner/ast.py:
    * giscanner/dumper.py:
    * giscanner/girparser.py:
    * giscanner/giscannermodule.c (pygi_source_scanner_get_comments),
    (calc_attrs_length), (pygi_collect_attributes), (init_giscanner):
    * giscanner/glibtransformer.py:
    * giscanner/scannerlexer.l:
    * giscanner/sourcescanner.c (gi_source_symbol_unref),
    (gi_source_scanner_new), (gi_source_scanner_free),
    (gi_source_scanner_get_comments):
    * giscanner/sourcescanner.h:
    * giscanner/sourcescanner.py:
    * giscanner/transformer.py:
    * giscanner/xmlwriter.py:
    * tests/scanner/annotation-1.0-expected.gir:
    * tests/scanner/annotation-1.0-expected.tgir:
    * tests/scanner/annotation.c:
    * tests/scanner/annotation.h:
    * tests/scanner/foo-1.0-expected.gir:
    * tests/scanner/foo-1.0-expected.tgir:
    * tests/scanner/foo.h:
    * tools/g-ir-scanner:

    This commit merges the annotation parser rewrite branch.
    It'll change the annotation parsing to be done completely in python
    code which will make it easier to do further annotation parsing
    easier.

svn path=/trunk/; revision=1017

15 years agoDefault transfer type is no longer full. Fix annotation on
Robert Carr [Fri, 9 Jan 2009 13:36:03 +0000 (13:36 +0000)]
Default transfer type is no longer full. Fix annotation on
g_file_info_list_attributes to explicitly specify.

svn path=/trunk/; revision=1004

15 years agoAdd some annotations to everything test.
Robert Carr [Fri, 9 Jan 2009 06:20:46 +0000 (06:20 +0000)]
Add some annotations to everything test.

svn path=/trunk/; revision=1003

15 years agoAnnotate test_strv_out.
Robert Carr [Fri, 9 Jan 2009 03:39:38 +0000 (03:39 +0000)]
Annotate test_strv_out.

svn path=/trunk/; revision=1002

15 years agoAnnotate array return for g_file_info_list_attributes.
Robert Carr [Fri, 9 Jan 2009 03:15:20 +0000 (03:15 +0000)]
Annotate array return for g_file_info_list_attributes.

svn path=/trunk/; revision=1001

15 years agoBug 563469 – Arrays not treated correctly in struct offset calculation
Andreas Rottmann [Sat, 3 Jan 2009 14:36:59 +0000 (14:36 +0000)]
Bug 563469 – Arrays not treated correctly in struct offset calculation

2009-01-03  Andreas Rottmann  <a.rottmann@gmx.at>

    Bug 563469 – Arrays not treated correctly in struct offset calculation

    * tests/scanner/foo.h (FooObject): Added field `some_int'.
    * tests/scanner/foo-1.0-expected.gir,
    * tests/scanner/foo-1.0-expected.tgir: Adapted.

    * giscanner/glibtransformer.py (GLibTransformer._create_gobject):
    carry over object fields from original (struct) node.
    (GLibTransformer._pair_class_struct): Don't add fields of the
    class struct to to the node for the class, they should go under a
    nested <record> element (see also Bug 551738). This is needed as
    otherwise offset calculation would not work, as the instance
    fields are mingled with the class fields without a way to
    distinguish them.

svn path=/trunk/; revision=1000

15 years agoDisable blank line check, it works differently under Python 2.5 from 2.6
Johan Dahlin [Sat, 3 Jan 2009 14:35:39 +0000 (14:35 +0000)]
Disable blank line check, it works differently under Python 2.5 from 2.6

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

        * misc/pep8.py:
        Disable blank line check, it works differently under
        Python 2.5 from 2.6 and was rather annoying from the start.

svn path=/trunk/; revision=999

15 years agoBug 556489 – callback annotations
Andreas Rottmann [Sat, 3 Jan 2009 13:44:42 +0000 (13:44 +0000)]
Bug 556489 – callback annotations

2008-01-03  Andreas Rottmann  <a.rottmann@gmx.at>

Bug 556489 – callback annotations

* giscanner/transformer.py

* tools/generate.c (write_callable_info): Write out the new scope,
closure and destroy attributes.

* giscanner/transformer.py (Transformer._type_is_callback): New
method, checking if a given type is a callback.
(Transformer._augment_callback_params): New method; adds
information (closure, destroy) to callback parameters.
(Transformer._handle_closure, Transformer._handle_destroy): New methods,
auxiliary to _augment_callback_params.
(Transformer._create_function): Call _augment_callback_params().
(Transformer._create_parameter): Handle scope option.

(Transformer._create_typedef_callback): New method, creates a
callback, and registers it in the typedef namespace
(Transformer._create_typedef): Use _create_typedef_callback()
instead of the plain _create_callback().

* giscanner/ast.py (Parameter): Added callback-related fields.
* giscanner/girwriter.py: Write out new Parameter fields.

* girepository/girnode.h (GIrNodeParam): Added fields scope,
closure and destroy.
* girepository/gtypelib.h (ArgBlob): Ditto.
* girepository/girparser.c (start_parameter): Handle new fields.

* girepository/girmodule.c (g_ir_module_build_typelib): Adjust
arg_blob_size, bump major version due to this change.
* girepository/girnode.c (g_ir_node_get_full_size_internal)
(g_ir_node_build_typelib)
* girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
adjustments.
(g_ir_node_build_typelib): Fill in new ArgBlob flags from param.

* girepository/girepository.h (GIScope): New enumeration, listing
the different possible scopes for callbacks.

* girepository/ginfo.c (g_arg_info_get_scope)
(g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
callback-related argument indices (callback scope, closure for a
callback, destroy notification for a callback).

* tests/scanner/: Added testcases for new features.

svn path=/trunk/; revision=998

15 years agoFix inconsistencies with PEP8
Jürg Billeter [Sat, 3 Jan 2009 13:43:07 +0000 (13:43 +0000)]
Fix inconsistencies with PEP8

2009-01-03  Jürg Billeter  <j@bitron.ch>

* giscanner/ast.py:
* giscanner/dumper.py:
* giscanner/girparser.py:
* giscanner/glibtransformer.py:
* giscanner/sourcescanner.py:
* giscanner/transformer.py:
* giscanner/xmlwriter.py:

Fix inconsistencies with PEP8

svn path=/trunk/; revision=997

15 years agoAnnotate transfer, direction and allow none for
Johan Dahlin [Sun, 21 Dec 2008 21:52:09 +0000 (21:52 +0000)]
Annotate transfer, direction and allow none for

2008-12-21  Johan Dahlin  <jdahlin@async.com.br>

        * gir/gio-2.0.c:
        Annotate transfer, direction and allow none for
        g_file_load_contents_finish and
        g_file_load_partial_contents_finish parameters.

svn path=/trunk/; revision=996

15 years agoAnnotate transfer, direction and allow none for g_file_load_contents
Johan Dahlin [Sun, 21 Dec 2008 21:32:53 +0000 (21:32 +0000)]
Annotate transfer, direction and allow none for g_file_load_contents

2008-12-21  Johan Dahlin  <jdahlin@async.com.br>

        * gir/gio-2.0.c:
        Annotate transfer, direction and allow none for
        g_file_load_contents parameters.

svn path=/trunk/; revision=995

15 years agoDisable array auto-detection for out-annotated parameters
Owen Taylor [Tue, 16 Dec 2008 04:20:50 +0000 (04:20 +0000)]
Disable array auto-detection for out-annotated parameters

If we have a parameter annotated as (out), then having a ctype of
'char **' (or similar) doesn't necessarily indicate an array.

* giscanner/transformer.py: Skip array-detection logic for
  (out)-annotated parameters.
* tests/scanner/annotation.h tests/scanner/annotation.c
  tests/scanner/annotation-1.0-expected.gir
  tests/scanner/annotation-1.0-expected.tgir: Add a test for
  an (out) string parameter.

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

svn path=/trunk/; revision=994

15 years agoPass in --tag=CC to libtool to avoid making libtool confused when CC is
Johan Dahlin [Fri, 12 Dec 2008 18:29:55 +0000 (18:29 +0000)]
Pass in --tag=CC to libtool to avoid making libtool confused when CC is

2008-12-12  Johan Dahlin  <jdahlin@async.com.br>

* giscanner/dumper.py (DumpCompiler._link): Pass in
--tag=CC to libtool to avoid making libtool confused
when CC is different from gcc on some systems.

svn path=/trunk/; revision=993

15 years agoDon't install barapp.
Colin Walters [Thu, 11 Dec 2008 22:09:10 +0000 (22:09 +0000)]
Don't install barapp.

svn path=/trunk/; revision=992

15 years agoBug 563998 – Cache the GIBaseInfo for GTypes
Johan Bilien [Wed, 10 Dec 2008 17:53:09 +0000 (17:53 +0000)]
Bug 563998 – Cache the GIBaseInfo for GTypes

2008-12-10  Johan Bilien  <jobi@via.ecp.fr>

Bug 563998 – Cache the GIBaseInfo for GTypes

* girepository/girepository.c (g_irepository_find_by_gtype):
add a cache of GType -> GIBaseInfo.

svn path=/trunk/; revision=991

15 years agoBug 562545 – Add function taking / returning GValue
Johan Bilien [Tue, 9 Dec 2008 15:27:47 +0000 (15:27 +0000)]
Bug 562545 – Add function taking / returning GValue

2008-12-09  Johan Bilien  <jobi@via.ecp.fr>

Bug 562545 – Add function taking / returning GValue

* tests/everything/everything.[ch]: add a test of function taking and
returning "const GValue *"

svn path=/trunk/; revision=990

15 years agoUse shutil.move instead of os.rename, since it will automatically fall
Johan Dahlin [Tue, 9 Dec 2008 15:19:57 +0000 (15:19 +0000)]
Use shutil.move instead of os.rename, since it will automatically fall

2008-12-09  Johan Dahlin  <johan@async.com.br>

* giscanner/cachestore.py (CacheStore.store): Use
shutil.move instead of os.rename, since it will
automatically fall back to copying+remove if the
src directory is on a different partition from
the dst directory.

svn path=/trunk/; revision=989

15 years agoBug 563742 – introspection should record the introduced version of
Tristan Van Berkom [Tue, 9 Dec 2008 00:07:08 +0000 (00:07 +0000)]
Bug 563742 – introspection should record the introduced version of

2008-12-08  Tristan Van Berkom  <tristan.van.berkom@gmail.com>

        Bug 563742 – introspection should record the introduced version of
                     symbols marked with the "Since:" tag

        reviewed by: Johan

        * giscanner/ast.py:
        * giscanner/girwriter.py:
        * giscanner/scannerlexer.l:
        * giscanner/transformer.py:
        * tests/scanner/annotation-1.0-expected.gir:
        * tests/scanner/annotation-1.0-expected.tgir:
        * tests/scanner/annotation.c (annotation_versioned):
        * tests/scanner/annotation.h:

svn path=/trunk/; revision=988

15 years agoDon't require HOME to be set and if it set, don't require the directory to
Johan Dahlin [Mon, 8 Dec 2008 20:05:29 +0000 (20:05 +0000)]
Don't require HOME to be set and if it set, don't require the directory to

2008-12-08  Johan Dahlin  <johan@async.com.br>

* giscanner/cachestore.py (_get_cachedir): Don't require
HOME to be set and if it set, don't require the
directory to exist.

svn path=/trunk/; revision=987

15 years agoyay for scripts checking number of newlines
Johan Dahlin [Mon, 8 Dec 2008 17:32:24 +0000 (17:32 +0000)]
yay for scripts checking number of newlines

svn path=/trunk/; revision=986

15 years agoDump the cache file to a temporary file and rename it the expected
Johan Dahlin [Mon, 8 Dec 2008 16:29:33 +0000 (16:29 +0000)]
Dump the cache file to a temporary file and rename it the expected

2008-12-08  Johan Dahlin  <johan@async.com.br>

* giscanner/cachestore.py (CacheStore.store): Dump the cache
file to a temporary file and rename it the expected filename
only when it's completely written.
This should make the cache more roboust when run in parallel,
and hopefully avoid triggering bugs in Python.

svn path=/trunk/; revision=985

15 years agoAnnotate g_file_info_get_icon, g_file_info_get_attribute_object.
Colin Walters [Sun, 7 Dec 2008 18:09:27 +0000 (18:09 +0000)]
Annotate g_file_info_get_icon, g_file_info_get_attribute_object.

svn path=/trunk/; revision=984

15 years agoraise YY_BUF_SIZE to 65536 up from the default 16384.
Christophe Fergeau [Wed, 3 Dec 2008 12:39:44 +0000 (12:39 +0000)]
raise YY_BUF_SIZE to 65536 up from the default 16384.

With the default YY_BUF_SIZE value, the lexer was aborting with a cryptic
error message on source files containing really long comment blocks.
Fixes bug 562971 – g-ir-scanner failure on libgpod headers

svn path=/trunk/; revision=983

15 years agoChangeLog
Colin Walters [Mon, 1 Dec 2008 17:05:41 +0000 (17:05 +0000)]
ChangeLog

svn path=/trunk/; revision=982

15 years agoFix memory leak; unref type info we created, not field info
Colin Walters [Mon, 1 Dec 2008 17:05:37 +0000 (17:05 +0000)]
Fix memory leak; unref type info we created, not field info

We expect callers to own the FieldInfo, we should not unref it.  However
we should unref the type info we accessed.

svn path=/trunk/; revision=981

15 years agoRemove tabs, fixes make check
Johan Dahlin [Mon, 1 Dec 2008 15:13:17 +0000 (15:13 +0000)]
Remove tabs, fixes make check

svn path=/trunk/; revision=980

15 years agoBug 562289 – Race when removing invalid cache
Johan Dahlin [Sun, 30 Nov 2008 13:05:52 +0000 (13:05 +0000)]
Bug 562289 – Race when removing invalid cache

2008-11-30  Johan Dahlin  <jdahlin@async.com.br>

        Bug 562289 – Race when removing invalid cache

        * giscanner/cachestore.py:
        ENOENT is mapped to a OSError, not IOError.

svn path=/trunk/; revision=979

15 years agoAdd return value transfer annotation for g_markup_escape_text.
Johan Dahlin [Thu, 27 Nov 2008 15:32:25 +0000 (15:32 +0000)]
Add return value transfer annotation for g_markup_escape_text.

2008-11-27  Johan Dahlin  <jdahlin@async.com.br>

* gir/glib-2.0.c: Add return value transfer annotation
for g_markup_escape_text.

svn path=/trunk/; revision=978

15 years agoAdd --libtool option which we expect Automake-using people to pass
Colin Walters [Wed, 26 Nov 2008 15:47:35 +0000 (15:47 +0000)]
Add --libtool option which we expect Automake-using people to pass

svn path=/trunk/; revision=977

15 years agoRemove hand-rolled generation of .tgir
Colin Walters [Wed, 26 Nov 2008 01:50:36 +0000 (01:50 +0000)]
Remove hand-rolled generation of .tgir

It's easier to just use a Makefile rule and dependencies.
This corresponds with a change made to gir-repository to fix
srcdir != builddir issues.

svn path=/trunk/; revision=976

15 years agoPost release version bump
Johan Dahlin [Tue, 25 Nov 2008 22:57:42 +0000 (22:57 +0000)]
Post release version bump

2008-11-25  Johan Dahlin  <jdahlin@async.com.br>

* configure.ac:
Post release version bump

svn path=/trunk/; revision=975

15 years agoRelease 0.6.1 GOBJECT_INTROSPECTION_0_6_1
Johan Dahlin [Tue, 25 Nov 2008 22:48:51 +0000 (22:48 +0000)]
Release 0.6.1

2008-11-25  Johan Dahlin  <jdahlin@async.com.br>

* NEWS:
Release 0.6.1

svn path=/trunk/; revision=973

15 years agoBug 559705 – Missing association between static methods and classes
Colin Walters [Tue, 25 Nov 2008 22:29:20 +0000 (22:29 +0000)]
Bug 559705 – Missing association between static methods and classes

2008-11-25  Colin Walters  <walters@verbum.org>

        Bug 559705 – Missing association between static methods and classes

        * docs/typelib-format.txt:
        * girepository/ginfo.c (g_function_info_get_flags):
        * girepository/girmodule.c (g_ir_module_build_typelib):
        * girepository/girnode.c (g_ir_node_get_size),
        (g_ir_node_build_typelib):
        * girepository/girparser.c (start_function):
        * girepository/gtypelib.c (g_typelib_check_sanity),
        (validate_header), (validate_function_blob):
        * girepository/gtypelib.h:
        * giscanner/ast.py:
        * giscanner/girwriter.py:
        * giscanner/glibtransformer.py:
        * tests/scanner/foo-1.0-expected.gir:
        * tests/scanner/foo-1.0-expected.tgir:
        * tests/scanner/foo.h:

svn path=/trunk/; revision=972

15 years agoRemove debug print
Colin Walters [Tue, 25 Nov 2008 21:48:38 +0000 (21:48 +0000)]
Remove debug print

svn path=/trunk/; revision=971

15 years agoBug 561137 - support multiple repositories
Colin Walters [Tue, 25 Nov 2008 21:48:34 +0000 (21:48 +0000)]
Bug 561137 - support multiple repositories

This change makes us stop calling g_irepository_get_default inside ginfo.c,
which won't work for non-default repositories.

Change GIBaseInfo to not only keep track of its source repository,
we hold a reference.  This makes memmgt much clearer.

svn path=/trunk/; revision=970

15 years agoRevert earlier libtool change, there's no need
Johan Dahlin [Tue, 25 Nov 2008 21:09:56 +0000 (21:09 +0000)]
Revert earlier libtool change, there's no need
to execute through libtool since libtool would have
created a wrapper if it was found at link time

svn path=/trunk/; revision=969

15 years agoDefine socklen_t as an alias for int32.
Johan Dahlin [Tue, 25 Nov 2008 21:05:21 +0000 (21:05 +0000)]
Define socklen_t as an alias for int32.

2008-11-25  Johan Dahlin  <jdahlin@async.com.br>

    * giscanner/ast.py: Define socklen_t as an alias for int32.

svn path=/trunk/; revision=968

15 years agoBump required automake version to 1.9; 1.7 fails
Colin Walters [Tue, 25 Nov 2008 18:30:16 +0000 (18:30 +0000)]
Bump required automake version to 1.9; 1.7 fails

GLib currently depends on 1.9 or later, so this change seems safe.

svn path=/trunk/; revision=967

15 years agofix link failure when introspecting girepository itself
Tommi Komulainen [Tue, 25 Nov 2008 17:54:41 +0000 (17:54 +0000)]
fix link failure when introspecting girepository itself

* giscanner/dumper.py (_link): fix link failure when
introspecting girepository itself by ordering the command line
options better

svn path=/trunk/; revision=966

15 years agoprefer uninstalled libraries to installed ones
Tommi Komulainen [Tue, 25 Nov 2008 17:02:43 +0000 (17:02 +0000)]
prefer uninstalled libraries to installed ones

* giscanner/dumper.py (_link): prefer uninstalled libraries to
installed ones so that we don't introspect an older, installed
version

svn path=/trunk/; revision=965

15 years agoExecute the dumper program through libtool if it's installed, so we avoid
Johan Dahlin [Tue, 25 Nov 2008 13:01:58 +0000 (13:01 +0000)]
Execute the dumper program through libtool if it's installed, so we avoid

2008-11-25  Johan Dahlin  <jdahlin@async.com.br>

        * giscanner/glibtransformer.py:
        * tools/g-ir-scanner:
        Execute the dumper program through libtool if it's installed,
        so we avoid loading the installed version.

svn path=/trunk/; revision=964

15 years agoRemove a warning, be less verbose on error on fundamental types.
Johan Dahlin [Mon, 24 Nov 2008 16:22:16 +0000 (16:22 +0000)]
Remove a warning, be less verbose on error on fundamental types.

2008-11-24  Johan Dahlin  <jdahlin@async.com.br>

* girepository/gdump.c (dump_type): Remove a warning,
be less verbose on error on fundamental types.

svn path=/trunk/; revision=963

15 years agoAdd license headers, refactor into a class, avoid some duplication and do
Johan Dahlin [Sun, 23 Nov 2008 21:38:08 +0000 (21:38 +0000)]
Add license headers, refactor into a class, avoid some duplication and do

2008-11-23  Johan Dahlin  <jdahlin@async.com.br>

        * giscanner/dumper.py: Add license headers,
        refactor into a class, avoid some duplication and do some
        extra pedantic checks.

svn path=/trunk/; revision=962

15 years agoMake it compilable with -Werror on my system by adding a couple of
Johan Dahlin [Sun, 23 Nov 2008 20:36:15 +0000 (20:36 +0000)]
Make it compilable with -Werror on my system by adding a couple of

2008-11-23  Johan Dahlin  <jdahlin@async.com.br>

        Make it compilable with -Werror on my system by adding
        a couple of prototypes and including headers.

svn path=/trunk/; revision=960

15 years agoBug 562022 – gobject-introspection needs python headers
Johan Dahlin [Sun, 23 Nov 2008 16:42:07 +0000 (16:42 +0000)]
Bug 562022 – gobject-introspection needs python headers

2008-11-23  Johan Dahlin  <jdahlin@async.com.br>

    Bug 562022 – gobject-introspection needs python headers

    * configure.ac: fail without python headers present.
    Patch by: Tom Parker

svn path=/trunk/; revision=959

15 years agoAdd time_t to Everything
Colin Walters [Fri, 21 Nov 2008 14:47:03 +0000 (14:47 +0000)]
Add time_t to Everything

svn path=/trunk/; revision=958

15 years agoBug 561617 – Return value array annotations
Johan Dahlin [Fri, 21 Nov 2008 02:53:28 +0000 (02:53 +0000)]
Bug 561617 – Return value array annotations

2008-11-21  Johan Dahlin  <jdahlin@async.com.br>

    Bug 561617 – Return value array annotations

    * giscanner/transformer.py:
    * tests/scanner/annotation.c (annotation_return_array):
    * tests/scanner/annotation.h:
    Add support for (array) for return value annotations as well.

svn path=/trunk/; revision=957

15 years agoAnnotate g_app_info_get_icon
Colin Walters [Fri, 21 Nov 2008 00:13:34 +0000 (00:13 +0000)]
Annotate g_app_info_get_icon

svn path=/trunk/; revision=956

15 years agotests/everything/everything.c: (test_closure_one_arg): set the value to 0
Johan Bilien [Thu, 20 Nov 2008 12:05:31 +0000 (12:05 +0000)]
tests/everything/everything.c: (test_closure_one_arg): set the value to 0
before use

svn path=/trunk/; revision=955

15 years agoadd a test function which calls a closure.
Johan Bilien [Thu, 20 Nov 2008 11:54:05 +0000 (11:54 +0000)]
add a test function which calls a closure.

2008-11-20  Johan Bilien  <jobi@via.ecp.fr>

* tests/everything/everything.[ch]: add a test function which calls a
closure.

svn path=/trunk/; revision=954

15 years agoAdd Gio Unix bits to the Gio.gir if available
Colin Walters [Wed, 19 Nov 2008 22:42:09 +0000 (22:42 +0000)]
Add Gio Unix bits to the Gio.gir if available

Having a separate .gir would be fairly overkill for the few components
in the Gio Unix integration, and this mirrors how we handle Gtk.

svn path=/trunk/; revision=953

15 years agoAdd TestObj with static methods
Colin Walters [Wed, 19 Nov 2008 22:38:47 +0000 (22:38 +0000)]
Add TestObj with static methods

Static methods and ctors are a useful semi-corner case for bindings.

svn path=/trunk/; revision=952

15 years agoAnnotate g_app_info_get_all
Colin Walters [Wed, 19 Nov 2008 21:38:09 +0000 (21:38 +0000)]
Annotate g_app_info_get_all

svn path=/trunk/; revision=951

15 years agoCatch ValueError exceptions.
Johan Dahlin [Wed, 19 Nov 2008 20:15:14 +0000 (20:15 +0000)]
Catch ValueError exceptions.

2008-11-19  Johan Dahlin  <jdahlin@async.com.br>

        * giscanner/cachestore.py:
        Catch ValueError exceptions.

svn path=/trunk/; revision=950

15 years agoSwitch everything to .tgir convention
Colin Walters [Wed, 19 Nov 2008 20:11:31 +0000 (20:11 +0000)]
Switch everything to .tgir convention

We want to be using .tgir and g-ir-generate like the other cool kids;
the --typelib-xml option to the scanner is not at all the same thing.

svn path=/trunk/; revision=949

15 years agoAdd allow-none for Gio method
Colin Walters [Wed, 19 Nov 2008 20:11:26 +0000 (20:11 +0000)]
Add allow-none for Gio method

svn path=/trunk/; revision=948

15 years agofix builddir != srcdir
Tommi Komulainen [Tue, 18 Nov 2008 22:29:27 +0000 (22:29 +0000)]
fix builddir != srcdir

svn path=/trunk/; revision=947

15 years agoUse sizeof() instead of hard-coding struct sizes
Colin Walters [Tue, 18 Nov 2008 18:42:36 +0000 (18:42 +0000)]
Use sizeof() instead of hard-coding struct sizes

svn path=/trunk/; revision=946