platform/upstream/gobject-introspection.git
16 years agoBug 558848 giparser.py: shared library should be optional
Owen Taylor [Sat, 1 Nov 2008 23:01:21 +0000 (23:01 +0000)]
Bug 558848 giparser.py: shared library should be optional

2008-11-01  Owen Taylor  <otaylor@redhat.com>

        Bug 558848 giparser.py: shared library should be optional

        When parsing a .gir, allow the shared-library attribute
        of <namespace/> to be missing: this corresponds to the handling
        in libgirepository and elsewhere.

svn path=/trunk/; revision=860

16 years agoBug 557898 – Fails to build on OSX 10.4
Tommi Komulainen [Sat, 1 Nov 2008 18:21:55 +0000 (18:21 +0000)]
Bug 557898 – Fails to build on OSX 10.4

2008-11-01  Tommi Komulainen  <tommi.komulainen@iki.fi>

* configure.ac: Check for $shrext_cmds that should be implicitly
available if you're using libtool >= 2.0. If undefined, call
libtool --config explicitly to get its value.
* girepository/gtypelib.c: Remove special case for (non-)Darwin
systems as unneeded.

svn path=/trunk/; revision=859

16 years agoClarify licensing status
Colin Walters [Fri, 31 Oct 2008 22:34:22 +0000 (22:34 +0000)]
Clarify licensing status

svn path=/trunk/; revision=858

16 years agoRemove trailing whitespace
Johan Dahlin [Fri, 31 Oct 2008 21:27:47 +0000 (21:27 +0000)]
Remove trailing whitespace

svn path=/trunk/; revision=857

16 years agoPost release version bump
Johan Dahlin [Fri, 31 Oct 2008 21:19:11 +0000 (21:19 +0000)]
Post release version bump

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

    * configure.ac: Post release version bump

svn path=/trunk/; revision=856

16 years ago=== 0.6.0 === GOBJECT_INTROSPECTION_0_6_0
Johan Dahlin [Fri, 31 Oct 2008 21:07:58 +0000 (21:07 +0000)]
=== 0.6.0 ===
2008-10-31  Johan Dahlin  <jdahlin@async.com.br>

    * NEWS:
    * configure.ac:
    * docs/release-checklist.txt:
    0.6.0

svn path=/trunk/; revision=854

16 years agoadd an upload-release target Release process documentation
Johan Dahlin [Fri, 31 Oct 2008 19:59:40 +0000 (19:59 +0000)]
add an upload-release target Release process documentation

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

    * Makefile.am: add an upload-release target
    * docs/release-checklist.txt:
    Release process documentation

svn path=/trunk/; revision=853

16 years agoBug 558109 – _g_typelib_init fails to find shared libraries
Colin Walters [Fri, 31 Oct 2008 19:42:33 +0000 (19:42 +0000)]
Bug 558109 – _g_typelib_init fails to find shared libraries

svn path=/trunk/; revision=852

16 years agoRemove whitespace
Johan Dahlin [Fri, 31 Oct 2008 17:09:17 +0000 (17:09 +0000)]
Remove whitespace

svn path=/trunk/; revision=851

16 years agoDocument the renaming options.
Johan Dahlin [Fri, 31 Oct 2008 13:27:28 +0000 (13:27 +0000)]
Document the renaming options.

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

    * docs/g-ir-scanner.1:
    Document the renaming options.

svn path=/trunk/; revision=850

16 years agoList in-tree libraries first in LDADD / LIBADD
Tommi Komulainen [Fri, 31 Oct 2008 10:54:32 +0000 (10:54 +0000)]
List in-tree libraries first in LDADD / LIBADD

2008-10-31  Tommi Komulainen  <tommi.komulainen@iki.fi>

* giscanner/Makefile.am:
* tests/invoke/Makefile.am:
* tests/repository/Makefile.am: List in-tree libraries first in
LDADD / LIBADD. If installed library is listed first, the
resulting binary will prefer installed version to one in .libs,
possibly making 'make check' behave strangely.

svn path=/trunk/; revision=849

16 years agoAdd --nsversion docs
Johan Dahlin [Thu, 30 Oct 2008 22:08:30 +0000 (22:08 +0000)]
Add --nsversion docs

svn path=/trunk/; revision=848

16 years agomap 'id' (ObjC) to 'any' type
Tommi Komulainen [Thu, 30 Oct 2008 21:52:12 +0000 (21:52 +0000)]
map 'id' (ObjC) to 'any' type

2008-10-30  Tommi Komulainen  <tommi.komulainen@iki.fi>

* giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
gir-repository from choking with gdk/quartz

svn path=/trunk/; revision=847

16 years agoWrite a C version of the xml namespace formatter. Saves 15% of the time it
Johan Dahlin [Thu, 30 Oct 2008 20:42:30 +0000 (20:42 +0000)]
Write a C version of the xml namespace formatter. Saves 15% of the time it

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

    * giscanner/giscannermodule.c (calc_attrs_length),
    (pygi_collect_attributes):
    * giscanner/xmlwriter.py:
    Write a C version of the xml namespace formatter.
    Saves 15% of the time it takes to create a gtk gir.

svn path=/trunk/; revision=846

16 years agoAbstract attribute formatting to a function external to the XMLWriter
Johan Dahlin [Thu, 30 Oct 2008 20:23:55 +0000 (20:23 +0000)]
Abstract attribute formatting to a function external to the XMLWriter

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

    * giscanner/xmlwriter.py: Abstract attribute formatting
    to a function external to the XMLWriter class.

svn path=/trunk/; revision=845

16 years agoParse __signed__ as signed
Johan Dahlin [Thu, 30 Oct 2008 18:45:54 +0000 (18:45 +0000)]
Parse __signed__ as signed

svn path=/trunk/; revision=844

16 years agoParse and discard __typeof and __attribute.
Johan Dahlin [Thu, 30 Oct 2008 17:48:45 +0000 (17:48 +0000)]
Parse and discard __typeof and __attribute.

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

    * giscanner/scannerlexer.l:
    Parse and discard __typeof and __attribute.

svn path=/trunk/; revision=843

16 years agoRemove arguments from the constructor, move them to separate accessors.
Johan Dahlin [Thu, 30 Oct 2008 17:12:51 +0000 (17:12 +0000)]
Remove arguments from the constructor, move them to separate accessors.

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

    * giscanner/girparser.py:
    Remove arguments from the constructor, move them to
    separate accessors. Add a new parse_tree method
    which takes an element tree instance.
    * tools/g-ir-scanner:
    Update callsite for this

    * giscanner/Makefile.am:
    * giscanner/cachestore.py:
    * giscanner/transformer.py:
    Cache the include parsing. Saves ~25% time when
    creating vte (which includes everything up to gtk+).

svn path=/trunk/; revision=842

16 years agoDon't reparse includes we've already processed
Colin Walters [Thu, 30 Oct 2008 16:55:56 +0000 (16:55 +0000)]
Don't reparse includes we've already processed

svn path=/trunk/; revision=841

16 years agoLook in XDG_DATA_DIR/gir, really.
Johan Dahlin [Thu, 30 Oct 2008 15:40:42 +0000 (15:40 +0000)]
Look in XDG_DATA_DIR/gir, really.

svn path=/trunk/; revision=840

16 years agoRewrap and reorder includes
Johan Dahlin [Thu, 30 Oct 2008 15:37:19 +0000 (15:37 +0000)]
Rewrap and reorder includes

svn path=/trunk/; revision=839

16 years agoAvoid parsing parameters, types etc when parsing includes. Should speed up
Johan Dahlin [Thu, 30 Oct 2008 14:08:29 +0000 (14:08 +0000)]
Avoid parsing parameters, types etc when parsing includes. Should speed up

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

    * giscanner/girparser.py:
    * giscanner/transformer.py:
    Avoid parsing parameters, types etc when parsing
    includes. Should speed up include parsing a bit.

svn path=/trunk/; revision=838

16 years agoAvoid big if/else and use a dispatch table like approach.
Johan Dahlin [Thu, 30 Oct 2008 14:00:17 +0000 (14:00 +0000)]
Avoid big if/else and use a dispatch table like approach.

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

    * giscanner/girparser.py:
    Avoid big if/else and use a dispatch table like
    approach.

svn path=/trunk/; revision=837

16 years agoClean up include parsing and registration.
Johan Dahlin [Thu, 30 Oct 2008 13:37:55 +0000 (13:37 +0000)]
Clean up include parsing and registration.

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

    * giscanner/transformer.py:
    Clean up include parsing and registration.

svn path=/trunk/; revision=836

16 years agoRun invoke & repository tests at last
Johan Dahlin [Thu, 30 Oct 2008 13:37:02 +0000 (13:37 +0000)]
Run invoke & repository tests at last

svn path=/trunk/; revision=835

16 years agoClean up imports
Johan Dahlin [Thu, 30 Oct 2008 13:27:38 +0000 (13:27 +0000)]
Clean up imports

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

    * giscanner/transformer.py:
    Clean up imports

svn path=/trunk/; revision=834

16 years agoBug 558383 – builddir != srcdir build fails if giscanner python module
Johan Dahlin [Thu, 30 Oct 2008 02:07:43 +0000 (02:07 +0000)]
Bug 558383 – builddir != srcdir build fails if giscanner python module

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

    Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed

    * gir/Makefile.am:
    construct PYTHONPATH just once

    * tests/everything/Makefile.am:
    * tests/scanner/Makefile.am:
    add $(top_srcdir) to PYTHONPATH to
    handle builddir != srcdir

    * giscanner/libtoolimporter.py:
    * giscanner/sourcescanner.py:
    Make the libtoolimporter work when distchecking too.

    Mostly based on patch by Tommi Komulainen

svn path=/trunk/; revision=833

16 years agoIf a filename of an existing file is passed to --library, hunt for it
Owen Taylor [Wed, 29 Oct 2008 20:36:51 +0000 (20:36 +0000)]
If a filename of an existing file is passed to --library, hunt for it

2008-10-29  Owen Taylor  <otaylor@redhat.com>

        * giscanner/glibtransformer.py: If a filename of an existing
file is passed to --library, hunt for it directly, rather than
searching for a corresponding library.

svn path=/trunk/; revision=832

16 years agoRemove test/types
Johan Dahlin [Wed, 29 Oct 2008 13:12:27 +0000 (13:12 +0000)]
Remove test/types

svn path=/trunk/; revision=831

16 years agoClean up the libtool importer a bit. Add a context so we can use it
Johan Dahlin [Wed, 29 Oct 2008 13:08:44 +0000 (13:08 +0000)]
Clean up the libtool importer a bit. Add a context so we can use it

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

    * giscanner/libtoolimporter.py:
    * giscanner/sourcescanner.py:
    Clean up the libtool importer a bit. Add a context so we
    can use it through a with statement.
    Don't just look in the current directory, look in the whole
    sys.path.

svn path=/trunk/; revision=830

16 years agoChangeLog
Tommi Komulainen [Wed, 29 Oct 2008 11:24:32 +0000 (11:24 +0000)]
ChangeLog

svn path=/trunk/; revision=828

16 years agoexplicitly link libtool versioning with typelib versioning
Tommi Komulainen [Wed, 29 Oct 2008 11:24:23 +0000 (11:24 +0000)]
explicitly link libtool versioning with typelib versioning

* tests/everything/Makefile.am: explicitly link libtool
versioning with typelib versioning with variables

svn path=/trunk/; revision=827

16 years agorename gitesttypes to Everything
Tommi Komulainen [Wed, 29 Oct 2008 11:24:14 +0000 (11:24 +0000)]
rename gitesttypes to Everything

* tests/everything/Makefile.am: build normal shared library
libgirepository-everything.so.1.0.0 and corresponding typelib
Everything-1.0.typelib

svn path=/trunk/; revision=826

16 years agomove tests/types to tests/everything
Tommi Komulainen [Wed, 29 Oct 2008 11:24:07 +0000 (11:24 +0000)]
move tests/types to tests/everything

* configure.ac:
* tests/Makefile.am:
* tests/types/Makefile.am   -> tests/everything/Makefile.am
* tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
* tests/types/gitesttypes.h -> tests/everything/gitesttypes.h

svn path=/trunk/; revision=825

16 years agofix distcheck
Tommi Komulainen [Wed, 29 Oct 2008 10:36:47 +0000 (10:36 +0000)]
fix distcheck

* tests/scanner/Makefile.am: stop %.typelib rule from building
%-expected.tgir (via %-expected.typelib)

svn path=/trunk/; revision=824

16 years agodistcheck fixes
Tommi Komulainen [Wed, 29 Oct 2008 10:13:16 +0000 (10:13 +0000)]
distcheck fixes

* gir/Makefile.am:
* tests/Makefile.am:
* tests/invoke/Makefile.am:
* tests/scanner/Makefile.am: Add missing files to EXTRA_DIST and
CLEANFILES, reference files using $(srcdir)

svn path=/trunk/; revision=823

16 years agoadd LD_LIBRARY_PATH to LPATH before calling ld.
Johan Bilien [Tue, 28 Oct 2008 19:17:44 +0000 (19:17 +0000)]
add LD_LIBRARY_PATH to LPATH before calling ld.

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

* tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.

svn path=/trunk/; revision=822

16 years agoadd allow-none annotations, based on the pygobject .defs file
Johan Bilien [Mon, 27 Oct 2008 18:45:14 +0000 (18:45 +0000)]
add allow-none annotations, based on the pygobject .defs file

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

* gio/gio-2.0.c: add allow-none annotations, based on the pygobject
.defs file

svn path=/trunk/; revision=821

16 years agoBug 558068 – when invoking a method, offset the in arguments by one, not
Johan Bilien [Mon, 27 Oct 2008 15:03:18 +0000 (15:03 +0000)]
Bug 558068 – when invoking a method, offset the in arguments by one, not

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

Bug 558068 – when invoking a method, offset the in arguments by one,
not the out

* tests/invoke/invoke.c, tests/invoke/testfns.c,
tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
* girepository/ginvoke.c: do not offset the index of given out
arguments by one for methods, "this" is provided as in argument only.

svn path=/trunk/; revision=820

16 years agoadd annotation for g_file_delete
Johan Bilien [Mon, 27 Oct 2008 11:24:29 +0000 (11:24 +0000)]
add annotation for g_file_delete

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

* gir/gio-2.0.c: add annotation for g_file_delete

svn path=/trunk/; revision=819

16 years agoBug 558062 – provide and use paths in the .pc file
Tommi Komulainen [Mon, 27 Oct 2008 11:17:28 +0000 (11:17 +0000)]
Bug 558062 – provide and use paths in the .pc file

2008-10-27  Tommi Komulainen  <tommi.komulainen@iki.fi>

* gobject-introspection-1.0.pc.in: provide typelibdir variable
for where .typelibs should be installed (callers shouldn't need
to construct paths from bits and pieces)

svn path=/trunk/; revision=818

16 years agog_irepository_require() returns GTypelib now, fix warning
Tommi Komulainen [Mon, 27 Oct 2008 10:02:01 +0000 (10:02 +0000)]
g_irepository_require() returns GTypelib now, fix warning

svn path=/trunk/; revision=817

16 years agoBug 557791 – g_irepository_require() could return a GTypelib *
Colin Walters [Sat, 25 Oct 2008 15:48:50 +0000 (15:48 +0000)]
Bug 557791 – g_irepository_require() could return a GTypelib *

svn path=/trunk/; revision=816

16 years agoBug 557788 – Return types for constructors in generated typelib bogus
Colin Walters [Sat, 25 Oct 2008 15:42:20 +0000 (15:42 +0000)]
Bug 557788 – Return types for constructors in generated typelib bogus

svn path=/trunk/; revision=815

16 years agoBug 557786 - support fixed size arrays
Colin Walters [Sat, 25 Oct 2008 15:20:54 +0000 (15:20 +0000)]
Bug 557786 - support fixed size arrays

svn path=/trunk/; revision=814

16 years agoBug 557076 - move typelibs to $libdir
Colin Walters [Sat, 25 Oct 2008 14:59:25 +0000 (14:59 +0000)]
Bug 557076 - move typelibs to $libdir

svn path=/trunk/; revision=813

16 years agoBe less verbose about source types, we handle most of them now anyway
Johan Dahlin [Fri, 24 Oct 2008 11:40:43 +0000 (11:40 +0000)]
Be less verbose about source types, we handle most of them now anyway

svn path=/trunk/; revision=812

16 years agoBe quiet, do not warn about unhandled members.
Johan Dahlin [Fri, 24 Oct 2008 11:33:33 +0000 (11:33 +0000)]
Be quiet, do not warn about unhandled members.

2008-10-24  Johan Dahlin  <johan@gnome.org>

        * girepository/girnode.c (g_ir_node_check_unhandled_members):
        Be quiet, do not warn about unhandled members.

svn path=/trunk/; revision=811

16 years agoExport two private methods to avoid an compiler warning
Johan Dahlin [Fri, 24 Oct 2008 11:32:31 +0000 (11:32 +0000)]
Export two private methods to avoid an compiler warning

svn path=/trunk/; revision=810

16 years agoOnly use SHLIB_SUFFIX on darwin, otherwise use G_MODULE_SUFFIX, we cannot
Johan Dahlin [Fri, 24 Oct 2008 11:19:49 +0000 (11:19 +0000)]
Only use SHLIB_SUFFIX on darwin, otherwise use G_MODULE_SUFFIX, we cannot

2008-10-24  Johan Dahlin  <johan@gnome.org>

        * girepository/gtypelib.c:
        Only use SHLIB_SUFFIX on darwin, otherwise use
        G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.

svn path=/trunk/; revision=806

16 years agoBug 557623 - Constructors shouldn't be flagged as methods.
Lucas Rocha [Fri, 24 Oct 2008 09:54:34 +0000 (09:54 +0000)]
Bug 557623 - Constructors shouldn't be flagged as methods.

2008-10-24  Lucas Rocha  <lucasr@gnome.org>

Bug 557623 - Constructors shouldn't be flagged as methods.

* girepository/ginfo.c (g_function_info_get_flags): ditto.

svn path=/trunk/; revision=805

16 years agoCheck against division by zero for the modula operator. This fixes header
Johan Dahlin [Fri, 24 Oct 2008 09:17:02 +0000 (09:17 +0000)]
Check against division by zero for the modula operator. This fixes header

2008-10-24  Johan Dahlin  <johan@gnome.org>

        * giscanner/scannerparser.y:
        Check against division by zero for the modula operator.
        This fixes header parsing of OSX system headers included
        by libsoup.

svn path=/trunk/; revision=804

16 years agoAdd John Finlay
Johan Dahlin [Fri, 24 Oct 2008 07:38:39 +0000 (07:38 +0000)]
Add John Finlay

svn path=/trunk/; revision=803

16 years agoAdd a CONTRIBUTORS file and dist it.
Johan Dahlin [Fri, 24 Oct 2008 07:36:58 +0000 (07:36 +0000)]
Add a CONTRIBUTORS file and dist it.

2008-10-24  Johan Dahlin  <johan@gnome.org>

        * CONTRIBUTORS:
        * Makefile.am:
        Add a CONTRIBUTORS file and dist it.

svn path=/trunk/; revision=802

16 years agoAdd automake/libtool hack to build shared library
Colin Walters [Thu, 23 Oct 2008 20:59:30 +0000 (20:59 +0000)]
Add automake/libtool hack to build shared library

svn path=/trunk/; revision=801

16 years agoTypelibs should go in $(datadir) for now
Colin Walters [Thu, 23 Oct 2008 19:03:27 +0000 (19:03 +0000)]
Typelibs should go in $(datadir) for now

svn path=/trunk/; revision=800

16 years agoMore noinst_ on tests/types
Colin Walters [Thu, 23 Oct 2008 18:47:27 +0000 (18:47 +0000)]
More noinst_ on tests/types

svn path=/trunk/; revision=799

16 years agotests/types should be noinst_
Colin Walters [Thu, 23 Oct 2008 18:44:22 +0000 (18:44 +0000)]
tests/types should be noinst_

svn path=/trunk/; revision=798

16 years agoBug 556739 – transfer-ownership attribute should be mandatory in .gir
Tommi Komulainen [Thu, 23 Oct 2008 17:42:25 +0000 (17:42 +0000)]
Bug 556739 – transfer-ownership attribute should be mandatory in .gir

2008-10-23  Tommi Komulainen  <tommi.komulainen@iki.fi>

* girepository/girparser.c (parse_param_transfer):
* giscanner/transformer.py (_create_parameter, _create_return):
* giscanner/girwriter.py (_write_return, _write_parameter):
* tools/generate.c (write_callable_info): always write and
require "transfer-ownership" for return-values and parameters

* tests/boxed.gir:
* tests/invoke/testfns-1.0.gir:
* tests/object.gir:
* tests/scanner/DrawableAdditions.xml:
* tests/scanner/GtkFrob-1.0-expected.tgir:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/drawable-1.0-expected.tgir:
* tests/scanner/drawable-injected-1.0-expected.gir:
* tests/scanner/drawable-injected-1.0-expected.tgir:
* tests/scanner/foo-1.0-expected.tgir: Updated

svn path=/trunk/; revision=797

16 years agoChangeLog
Tommi Komulainen [Thu, 23 Oct 2008 17:40:31 +0000 (17:40 +0000)]
ChangeLog

svn path=/trunk/; revision=796

16 years agodeduce transfer-ownership from GTypes
Tommi Komulainen [Thu, 23 Oct 2008 17:40:29 +0000 (17:40 +0000)]
deduce transfer-ownership from GTypes

* giscanner/glibtransformer.py (_adjust_transfer):
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir: deduce
transfer-ownership from GTypes

svn path=/trunk/; revision=795

16 years agorearrange
Tommi Komulainen [Thu, 23 Oct 2008 17:40:25 +0000 (17:40 +0000)]
rearrange

* giscanner/glibtransformer.py (_adjust_transfer): rearrange

svn path=/trunk/; revision=794

16 years agoCheck whether the parameter is a GObject from the GType
Tommi Komulainen [Thu, 23 Oct 2008 17:40:23 +0000 (17:40 +0000)]
Check whether the parameter is a GObject from the GType

* giscanner/glibtransformer.py (_adjust_transfer): Check whether
the parameter is a GObject from its GType, if available.

svn path=/trunk/; revision=793

16 years agorecord GType when constructing the Type from it
Tommi Komulainen [Thu, 23 Oct 2008 17:40:19 +0000 (17:40 +0000)]
record GType when constructing the Type from it

* giscanner/glibtransformer.py (_type_from_gtype): record GType
when constructing the Type from it

svn path=/trunk/; revision=792

16 years agobuild fundamental types same way as glib
Tommi Komulainen [Thu, 23 Oct 2008 17:40:15 +0000 (17:40 +0000)]
build fundamental types same way as glib

* giscanner/cgobject.py: build fundamental types same way as glib

svn path=/trunk/; revision=791

16 years agomake varargs transfer-ownership="none"
Tommi Komulainen [Thu, 23 Oct 2008 17:37:00 +0000 (17:37 +0000)]
make varargs transfer-ownership="none"

2008-10-23  Tommi Komulainen  <tommi.komulainen@iki.fi>

* giscanner/transformer.py (_create_parameter):
* tests/scanner/foo-1.0-expected.gir: make varargs
transfer-ownership="none"

svn path=/trunk/; revision=790

16 years agofix foo_rectangle_add test
Tommi Komulainen [Thu, 23 Oct 2008 17:36:56 +0000 (17:36 +0000)]
fix foo_rectangle_add test

svn path=/trunk/; revision=789

16 years agoBug 556739 - transfer ownership heuristics
Colin Walters [Thu, 23 Oct 2008 12:38:08 +0000 (12:38 +0000)]
Bug 556739 - transfer ownership heuristics

svn path=/trunk/; revision=788

16 years agoAlways write out transfer-ownership attribute
Colin Walters [Thu, 23 Oct 2008 12:37:10 +0000 (12:37 +0000)]
Always write out transfer-ownership attribute

svn path=/trunk/; revision=787

16 years agoBug 557468 – Support for GI_TYPELIB_PATH
Johan Bilien [Thu, 23 Oct 2008 09:10:04 +0000 (09:10 +0000)]
Bug 557468 – Support for GI_TYPELIB_PATH

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

Bug 557468 – Support for GI_TYPELIB_PATH

* girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
provided paths to the global search path.

svn path=/trunk/; revision=786

16 years agoBug 557379 – g-ir-generate not writing the 'abstract' attribute
Tommi Komulainen [Wed, 22 Oct 2008 16:46:19 +0000 (16:46 +0000)]
Bug 557379 – g-ir-generate not writing the 'abstract' attribute

2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tests/scanner/drawable-1.0-expected.tgir:
* tests/scanner/drawable-injected-1.0-expected.tgir:
* tests/scanner/foo-1.0-expected.tgir:
* tools/generate.c (write_object_info): write 'abstract'
attribute for classes

svn path=/trunk/; revision=785

16 years agoBug 557377 – Add test to ensure annotations survive the roundtrip via typelib
Tommi Komulainen [Wed, 22 Oct 2008 16:46:13 +0000 (16:46 +0000)]
Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib

2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tests/scanner/Makefile.am:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/drawable-1.0-expected.tgir:
* tests/scanner/drawable-injected-1.0-expected.tgir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/GtkFrob-1.0-expected.tgir:
* tests/scanner/utility-1.0-expected.tgir: Add test to ensure
annotations survive the roundtrip via typelib

The expectations are as currently produced by g-ir-generate,
comparison with the .gir files shows there are differences.

svn path=/trunk/; revision=784

16 years agofix some build warnings.
Lucas Rocha [Wed, 22 Oct 2008 14:31:58 +0000 (14:31 +0000)]
fix some build warnings.

2008-10-22  Lucas Rocha  <lucasr@gnome.org>

* girepository/girmodule.c, girepository/gtypelib.c,
girepository/girparser.[ch]: fix some build warnings.

svn path=/trunk/; revision=783

16 years agoBug 557405 – Use 'allow-none' consistently
Tommi Komulainen [Wed, 22 Oct 2008 14:02:02 +0000 (14:02 +0000)]
Bug 557405 – Use 'allow-none' consistently

2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>

* docs/typelib-format.txt:
* girepository/ginfo.c (g_arg_info_may_be_null):
* girepository/girnode.c (g_ir_node_build_typelib):
* girepository/girnode.h (struct _GIrNodeParam):
* girepository/girparser.c (start_parameter):
* girepository/girwriter.c (function_generate):
* girepository/gtypelib.h (ArgBlob):
* tests/errors.gir:
* tests/function.gir:
* tools/generate.c (write_callable_info): Use 'allow-none'
consistently throughout

svn path=/trunk/; revision=782

16 years agoBug 557092 – Callback annotations not used
Tommi Komulainen [Wed, 22 Oct 2008 10:46:22 +0000 (10:46 +0000)]
Bug 557092 – Callback annotations not used

2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>

* giscanner/transformer.py (_create_callback): use annotations
for callbacks
* tests/scanner/annotation.h
* tests/scanner/annotation-1.0-expected.gir: add tests

svn path=/trunk/; revision=781

16 years agoFix bug reference
Johan Dahlin [Wed, 22 Oct 2008 07:34:56 +0000 (07:34 +0000)]
Fix bug reference

svn path=/trunk/; revision=780

16 years agoDon't require trailing whitespace after uncommented parameters
Colin Walters [Tue, 21 Oct 2008 21:35:35 +0000 (21:35 +0000)]
Don't require trailing whitespace after uncommented parameters

svn path=/trunk/; revision=779

16 years agoRespect path ordering for unversioned requires
Colin Walters [Tue, 21 Oct 2008 18:41:36 +0000 (18:41 +0000)]
Respect path ordering for unversioned requires

svn path=/trunk/; revision=778

16 years agoSubmit after session in PEP8 interrogation room
Colin Walters [Tue, 21 Oct 2008 18:25:34 +0000 (18:25 +0000)]
Submit after session in PEP8 interrogation room

svn path=/trunk/; revision=777

16 years agoWrite out throws attribute
Colin Walters [Tue, 21 Oct 2008 18:20:25 +0000 (18:20 +0000)]
Write out throws attribute

svn path=/trunk/; revision=776

16 years agoFor string parameters allow transfer annotation to override the standard
Owen Taylor [Tue, 21 Oct 2008 17:41:32 +0000 (17:41 +0000)]
For string parameters allow transfer annotation to override the standard

2008-10-21  Owen Taylor  <otaylor@redhat.com>

        * giscanner/transformer.py: For string parameters allow transfer annotation
        to override the standard automatic guessing based on 'const'.

svn path=/trunk/; revision=775

16 years agoAdd missing whitespace to make pep8 happy
Johan Dahlin [Tue, 21 Oct 2008 17:28:16 +0000 (17:28 +0000)]
Add missing whitespace to make pep8 happy

svn path=/trunk/; revision=774

16 years agoBug 557241 – "throws" flag for functions
Johan Bilien [Tue, 21 Oct 2008 17:04:11 +0000 (17:04 +0000)]
Bug 557241 – "throws" flag for functions

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

Bug 557241 – "throws" flag for functions

* tests/scanner/drawable-1.0-expected.gir,
tests/scanner/drawable-injected-1.0-expected.gir,
tests/scanner/drawable.[ch]: add simple test for throwing
function (has GError ** as last argument)

* giscanner/ast.py: add a 'throws' flag to Function
* giscanner/glibtransformer.py: if a function's last paramerter is
a GError, set the 'throws' flag and remove that parameter
* giscanner/girwriter.py: write out the 'throws' attribute
* giscanner/girparser.py: support parsing the 'throws' attribute

* tests/repository/gitestthrows.c: add a simple test to check the
throws flag in a typelib and invoke the function

* girepository/ginfo.c, girepository/girnode.[ch],
girepository/girnode.h, girepository/girparser.c,
girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag

* girepository/ginvoke.c: if a function throws, add a GError as last
arguments, and propagate the error to the invoker.

svn path=/trunk/; revision=773

16 years agoChangeLog
Tommi Komulainen [Tue, 21 Oct 2008 16:58:23 +0000 (16:58 +0000)]
ChangeLog

svn path=/trunk/; revision=772

16 years agoWarn if we see annotations for unknown parameters
Tommi Komulainen [Tue, 21 Oct 2008 16:58:20 +0000 (16:58 +0000)]
Warn if we see annotations for unknown parameters

* giscanner/transformer.py (_create_parameters): Warn if we see
annotations for unknown parameters. If .h and .c files name
parameters differently, the annotations may be lost.

svn path=/trunk/; revision=771

16 years agoRemove leftover raise SystemExit.
Johan Dahlin [Tue, 21 Oct 2008 15:40:23 +0000 (15:40 +0000)]
Remove leftover raise SystemExit.

svn path=/trunk/; revision=769

16 years agoRename GLib-assertions.txt to GLib-2.0.xpath and include it in EXTRA_DIST
Johan Dahlin [Tue, 21 Oct 2008 15:21:41 +0000 (15:21 +0000)]
Rename GLib-assertions.txt to GLib-2.0.xpath and include it in EXTRA_DIST

svn path=/trunk/; revision=768

16 years agoBug 556358 - don't use libtool internals
Johan Dahlin [Tue, 21 Oct 2008 14:51:33 +0000 (14:51 +0000)]
Bug 556358 - don't use libtool internals

2008-10-21  Johan Dahlin  <johan@gnome.org>

        Bug 556358 - don't use libtool internals

        * giscanner/Makefile.am:
        * giscanner/libtoolimporter.py:
        * giscanner/sourcescanner.py:
        * giscanner/utils.py:
        Add a python meta importer and remove a libtool symlink hack.

svn path=/trunk/; revision=767

16 years agoBug 557147 - fix build; patch from Andreas Rottmann
Colin Walters [Mon, 20 Oct 2008 21:03:13 +0000 (21:03 +0000)]
Bug 557147 - fix build; patch from Andreas Rottmann

svn path=/trunk/; revision=766

16 years agoChangeLog
Colin Walters [Mon, 20 Oct 2008 20:54:32 +0000 (20:54 +0000)]
ChangeLog

svn path=/trunk/; revision=765

16 years agoTests for bug 556777
Colin Walters [Mon, 20 Oct 2008 20:54:30 +0000 (20:54 +0000)]
Tests for bug 556777

svn path=/trunk/; revision=764

16 years agoBug 556777 - validate properties
Colin Walters [Mon, 20 Oct 2008 20:54:28 +0000 (20:54 +0000)]
Bug 556777 - validate properties

svn path=/trunk/; revision=763

16 years agoAdd allow_invalid argument to resolver so we can find bad types
Colin Walters [Mon, 20 Oct 2008 20:54:27 +0000 (20:54 +0000)]
Add allow_invalid argument to resolver so we can find bad types

svn path=/trunk/; revision=762

16 years agoFix __repr__ for Property
Colin Walters [Mon, 20 Oct 2008 20:54:24 +0000 (20:54 +0000)]
Fix __repr__ for Property

svn path=/trunk/; revision=761

16 years agoWe are handling those return types, silly
Colin Walters [Mon, 20 Oct 2008 19:42:12 +0000 (19:42 +0000)]
We are handling those return types, silly

svn path=/trunk/; revision=760

16 years agoTweak changelog
Colin Walters [Mon, 20 Oct 2008 19:09:20 +0000 (19:09 +0000)]
Tweak changelog

svn path=/trunk/; revision=759

16 years agoAlso register g variants of default_array_types.
Colin Walters [Mon, 20 Oct 2008 19:09:17 +0000 (19:09 +0000)]
Also register g variants of default_array_types.

svn path=/trunk/; revision=758

16 years agoBug 557011 - Add g_object_info_get_abstract
Colin Walters [Mon, 20 Oct 2008 17:04:17 +0000 (17:04 +0000)]
Bug 557011 - Add g_object_info_get_abstract

svn path=/trunk/; revision=757

16 years agoChangeLog
Tommi Komulainen [Mon, 20 Oct 2008 13:45:24 +0000 (13:45 +0000)]
ChangeLog

svn path=/trunk/; revision=756

16 years agogiscanner: don't lose 'transfer-ownership' attributes when injecting
Tommi Komulainen [Mon, 20 Oct 2008 13:44:15 +0000 (13:44 +0000)]
giscanner: don't lose 'transfer-ownership' attributes when injecting

* giscanner/girparser.py (_parse_function): don't lose
'transfer-ownership' attributes when injecting, check for the
correct attribute

svn path=/trunk/; revision=755