gnome.gobject-introspection
14 years agoBug 574351 - Add --pkg-export option GOBJECT_INTROSPECTION_0_6_4
Colin Walters [Mon, 24 Aug 2009 19:48:01 +0000 (15:48 -0400)]
Bug 574351 - Add --pkg-export option

We need to differentiate between --pkg options we use to parse
ourself, and --pkg-export which are needed for library consumers.

When introspecting a library we won't necessarily have the
pkg-config file built, so add a --pkg-export line so library
authors can explicitly make the .gir -> pkg-config association.

14 years agoBug 556628 – (skip) annotation
Dan Winship [Sat, 28 Mar 2009 14:07:37 +0000 (10:07 -0400)]
Bug 556628 – (skip) annotation

Adds a (skip) option that can be added to the header of any doc comment
to cause that symbol to be skipped in the .gir output

14 years agoBug 578200 - Substitute $(PYTHON) in g-ir-scanner.in
Colin Walters [Mon, 24 Aug 2009 18:38:27 +0000 (14:38 -0400)]
Bug 578200 - Substitute $(PYTHON) in g-ir-scanner.in

This lets us pick up non-default /usr/bin/python2.6 correctly.

14 years agoBug 587279 - Add COPYING.GPL and COPYING.LGPL
Colin Walters [Mon, 24 Aug 2009 18:30:14 +0000 (14:30 -0400)]
Bug 587279 - Add COPYING.GPL and COPYING.LGPL

It's better to keep lawyers happy if we ship the actual license
files rather than just mentioning them in COPYING.

14 years agoBug 590883 - Use 'cc' instead of 'gcc' for preprocessing
Colin Walters [Mon, 24 Aug 2009 18:23:21 +0000 (14:23 -0400)]
Bug 590883 - Use 'cc' instead of 'gcc' for preprocessing

Don't hardcode gcc, any cc which handles those options is good
enough; in particular this is reported to fix Sun Studio.

14 years agoLD_LIBRARY_PATH exorcism
Colin Walters [Thu, 20 Aug 2009 22:21:41 +0000 (18:21 -0400)]
LD_LIBRARY_PATH exorcism

Thanks to commit 6d510b8db, we now no longer need LD_LIBRARY_PATH
to be set for invoking the compiler.

Next, before we were taking the LD_LIBRARY_PATH variable and
turning it into a compile path, presumably to attempt to handle
the cases where we weren't getting the right -L flags.  Also
interacting with this was a while ago we weren't really doing
uninstalled libtool libraries correctly, which is probably
how hacks involving LD_LIBRARY_PATH crept into the scanner.

Just require that we're passed the right -L flags, and we
should be doing libtool libraries better now.

14 years agoMerge branch 'typelib-dlopen'
Colin Walters [Thu, 20 Aug 2009 21:10:51 +0000 (17:10 -0400)]
Merge branch 'typelib-dlopen'

14 years agoRemove some $(builddir) that crept back in
Owen W. Taylor [Mon, 17 Aug 2009 17:17:01 +0000 (13:17 -0400)]
Remove some $(builddir) that crept back in

With recent merges, a few instances of $(builddir) got reintroduced.
Remove them.

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

14 years ago[typelib] Clean up dlopen handling
Colin Walters [Tue, 18 Aug 2009 14:23:09 +0000 (10:23 -0400)]
[typelib] Clean up dlopen handling

It's was busted that g_typelib_new_* does the dlopen() since that caused
g-ir-compiler to load the modules even though it wasn't going to do
anything with them.

Instead, change things so that g_module_symbol does the dlopen on-demand.
Remove the extra dlopen(NULL) inside girepository.c, we had another
already in gtypelib.c.

Thanks to Owen Taylor for suggesting this approach.

14 years agoMake Everything-1.0.gir depend on GObject-2.0.gir
Colin Walters [Mon, 17 Aug 2009 22:37:59 +0000 (18:37 -0400)]
Make Everything-1.0.gir depend on GObject-2.0.gir

For parallel building.

14 years agoAdd FT_Library and cairo_font_face_t to hand-written .girs
Colin Walters [Mon, 17 Aug 2009 20:51:30 +0000 (16:51 -0400)]
Add FT_Library and cairo_font_face_t to hand-written .girs

These are dependencies of Pango.

14 years agoBug 592055 - Build/test fixes
Colin Walters [Mon, 17 Aug 2009 11:46:22 +0000 (07:46 -0400)]
Bug 592055 - Build/test fixes

The last few commits regressed 'check'; fix those up.

14 years agoAlso remove LD_LIBRARY_PATH bit from before AM_V_GEN for BarApp
Colin Walters [Mon, 17 Aug 2009 04:24:11 +0000 (00:24 -0400)]
Also remove LD_LIBRARY_PATH bit from before AM_V_GEN for BarApp

14 years agoSupport passing --library=lib<foo>.la
Owen W. Taylor [Fri, 14 Aug 2009 03:06:51 +0000 (23:06 -0400)]
Support passing --library=lib<foo>.la

In addition to the current --library=<foo>, support --library=lib<foo>.la.
This makes it unambiguous that we are referencing an uninstalled
library and allows accurate extraction of the shared library name
for the uninstalled library.

* tests/scanner/Makefile.am tests/offsets/Makefile.am: Use the
  new form of --library=. Also some LD_LIBRARY_PATH frobbing as needed.

*-expected.gir *-expected.tgir: We now pick out the shared library
  accurately, so fix shared-library="" in our reference girs. (The
  comparison may need some pre-sanitization now to work on non-ELF)

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

14 years agoResolve library names to shared libraries ourselves
Owen W. Taylor [Thu, 13 Aug 2009 20:09:27 +0000 (16:09 -0400)]
Resolve library names to shared libraries ourselves

Using ctypes.util.find_library() to resolve library names to
sonames causes problems with dealing with uninstalled libtool
operation properly. We're unlikely to find any way of combining
the two that will be robust against future changes in both
facilities.

Switch to a different approach - run 'ldd' on the compiled
introspection binary and extract sonames from there This is
less portable but should be quite robust where it works.

utils.py dumper.py: Move libtool-command-line finding into utils.py
girwriter.py: Remove library name resolution from here, expect libraries
  to be passed in preresolved.
shlibs.py scannermain.py: New file including resolve_shlibs() to resolve
  library names using the introspection binary.
tests/scanner/Makefile.am: Add .libs to LD_LIBRARY_PATH

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

14 years agoautoconf-2.64 compat: Don't use $(builddir)
Owen W. Taylor [Mon, 17 Aug 2009 04:07:35 +0000 (00:07 -0400)]
autoconf-2.64 compat: Don't use $(builddir)

$(builddir) is not a standard automake variable. With autoconf < 2.64
it ends up getting set in every Makefile.in to '.' (because autoconf
defines it), but that is no longer the case for 2.64.

Since $(builddir) was always '.', just use that instead.

14 years agoMove LPATH and $(CHECK_DEBUG) bits into $(SCANNER)
Colin Walters [Mon, 17 Aug 2009 03:43:37 +0000 (23:43 -0400)]
Move LPATH and $(CHECK_DEBUG) bits into $(SCANNER)

This allows us to consistently use $(SCANNER) as the first item
which needs to work for $(AM_V_GEN).

14 years agoProtect against source_filename being None when analyzing constants
Colin Walters [Mon, 17 Aug 2009 03:21:20 +0000 (23:21 -0400)]
Protect against source_filename being None when analyzing constants

It's allowed for source_filename to be None if we can't match it
up with a file, so just skip the constant in that case.

14 years agoUse current working directory for temporary executables
Colin Walters [Mon, 17 Aug 2009 03:20:14 +0000 (23:20 -0400)]
Use current working directory for temporary executables

This avoids /tmp noexec madness.

14 years agoExcise shave in favor of automake 1.11 silent rules
Colin Walters [Mon, 17 Aug 2009 02:59:31 +0000 (22:59 -0400)]
Excise shave in favor of automake 1.11 silent rules

Shave is just way too invasive in the build system.

14 years ago-DGLIB_COMPILATION when scanning GLib
Colin Walters [Sun, 16 Aug 2009 00:15:43 +0000 (20:15 -0400)]
-DGLIB_COMPILATION when scanning GLib

Some of the GLib headers are now growing checks for single-include;
override that.

14 years agoPrepend to $LD_LIBRARY_PATH not append
Owen W. Taylor [Thu, 13 Aug 2009 20:03:29 +0000 (16:03 -0400)]
Prepend to $LD_LIBRARY_PATH not append

We want to extend $LD_LIBRARY_PATH from the front so that uninstalled
libraries take precedence over installed libraries.

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

14 years agoDon't open shared libraries twice
Owen W. Taylor [Thu, 13 Aug 2009 19:14:49 +0000 (15:14 -0400)]
Don't open shared libraries twice

If loading a referenced shared library succeeds, don't try loading it again.

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

14 years agoUpdate after commit ffc15cd51639679c914868006a1e3462958bfd77
Simon van der Linden [Thu, 13 Aug 2009 19:45:02 +0000 (21:45 +0200)]
Update after commit ffc15cd51639679c914868006a1e3462958bfd77

14 years agoAnnotate g_shell_parse_argv()
Dan Winship [Mon, 10 Aug 2009 19:43:22 +0000 (15:43 -0400)]
Annotate g_shell_parse_argv()

14 years agoBack out the previous change. Now go back to hardcoding compiler to gcc.
Brian Cameron [Wed, 5 Aug 2009 19:25:30 +0000 (14:25 -0500)]
Back out the previous change.  Now go back to hardcoding compiler to gcc.
Using CC fails when building gobject-introspection because CC is defined to
be $(SHELL) scripts/shave cc '$(SHAVE_SAVED_CC)'.  A more sophisticated fix
will be needed later.

14 years agoOnly accept bison as yacc tool
Colin Walters [Wed, 5 Aug 2009 18:40:06 +0000 (14:40 -0400)]
Only accept bison as yacc tool

Others like byacc barf on some of the directives like %error-verbose.

14 years agoCheck the CC environment variable instead of assuming to use the gcc compiler.
Brian Cameron [Wed, 5 Aug 2009 17:40:28 +0000 (12:40 -0500)]
Check the CC environment variable instead of assuming to use the gcc compiler.

14 years agoUse all libraries specified on the command line
Colin Walters [Wed, 5 Aug 2009 17:24:23 +0000 (13:24 -0400)]
Use all libraries specified on the command line

Earlier we were only using the first library specified when
compiling an introspection binary.  This breaks builds on Solaris
which doesn't have implicit linking and we need to be able
to specify multiple libraries.

The tension here is primarily related to OS X' distinction between
modules and shared libraries; if we build the custom libraries
in gir-repository as shared libraries, then we can't dlopen them.
If we build them as modules, then the introspection binary compiler
can't link to them.

If we want to fix the OS X build, probably the way to go would be
a special --use-first-library-only option that gets conditionalized
on OS X + gir-repository.

But even better is to finish killing gir-repository entirely.

14 years agoAdd allow-none for etag for g_file_replace
Colin Walters [Mon, 3 Aug 2009 23:54:20 +0000 (19:54 -0400)]
Add allow-none for etag for g_file_replace

14 years agoFix a typo in test_flags_get_type
Simon van der Linden [Sun, 2 Aug 2009 11:30:04 +0000 (13:30 +0200)]
Fix a typo in test_flags_get_type

14 years agoRevert "Window isn't a record, but really a typedef for uint32"
Owen W. Taylor [Thu, 9 Jul 2009 10:11:35 +0000 (11:11 +0100)]
Revert "Window isn't a record, but really a typedef for uint32"

Exporting Windoew as a uint32 is revealing some problems in namespace
handling - functions that are supposed to return a GdkWindow * are
returning a x11.Window instead. Until that is fixed, we need to avoid
making this change.

(Also, Window isn't a uint32, it is an unsigned long)

This reverts commit 9ce2b05198653697896c3f7c9271073789f90c51.

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

14 years agoFix checks in gfield.c
Owen W. Taylor [Tue, 21 Apr 2009 14:57:50 +0000 (10:57 -0400)]
Fix checks in gfield.c

When checking if the readable/writable flags are missing for the fields
we are trying to read and write, use (a & flag) == 0, not (!a & flag).

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

14 years agoWindow isn't a record, but really a typedef for uint32
Colin Walters [Wed, 8 Jul 2009 13:16:25 +0000 (09:16 -0400)]
Window isn't a record, but really a typedef for uint32

Since it's used in the API as just "Window foo();", bindings
will fail trying to take a by-value struct.

14 years agoAdd a function to test arrays as inout argument in Everything
Simon van der Linden [Sun, 5 Jul 2009 16:12:45 +0000 (18:12 +0200)]
Add a function to test arrays as inout argument in Everything

Add test_array_int_inout in Everything.

14 years agoSync the basic types array in girnode.c:serialize_type with GITypeTag
Dan Winship [Mon, 6 Jul 2009 15:17:40 +0000 (11:17 -0400)]
Sync the basic types array in girnode.c:serialize_type with GITypeTag

Fixes a crash compiling GIRepository-2.0.gir.

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

14 years agoBug 583686 - Add gobject-introspection-no-export-1.0.pc
Colin Walters [Mon, 6 Jul 2009 15:22:48 +0000 (11:22 -0400)]
Bug 583686 - Add gobject-introspection-no-export-1.0.pc

Some projects may want to avoid the giant -Wl,--export-dynamic
hammmer and instead use a custom regexp or export list, so
provide a .pc file for them to use.

14 years agoMerge commit 'origin'
Johan Dahlin [Mon, 6 Jul 2009 14:05:11 +0000 (11:05 -0300)]
Merge commit 'origin'

14 years agoOmit warnings, my console is not a todo list
Johan Dahlin [Mon, 6 Jul 2009 14:04:22 +0000 (11:04 -0300)]
Omit warnings, my console is not a todo list

14 years agoAdd a TestObj subclass in Everything
Simon van der Linden [Sun, 28 Jun 2009 14:05:46 +0000 (16:05 +0200)]
Add a TestObj subclass in Everything

Add an instance method to TestObj.
Add a TestObj subclass in Everything, with another constructor, an
additional instance method and an overridden instance method.

14 years agoAllow annotations on fields
Andreas Rottmann [Fri, 3 Jul 2009 21:14:04 +0000 (23:14 +0200)]
Allow annotations on fields

Plain fields (i.e. non-callbacks) may have a 'type' annotation now.

14 years agoAdd xmlTextReaderPtr type to fake libxml2 GIR
Tim Horton [Fri, 26 Jun 2009 00:28:30 +0000 (20:28 -0400)]
Add xmlTextReaderPtr type to fake libxml2 GIR

This is needed in order to get libgweather introspecting.

14 years agoBug 586994: Add annotations for g_file_open_tmp()/g_file_replace_contents().
C. Scott Ananian [Thu, 25 Jun 2009 21:18:56 +0000 (17:18 -0400)]
Bug 586994: Add annotations for g_file_open_tmp()/g_file_replace_contents().

14 years agoName unions to enable compilation on Solaris
Tobias Mueller [Wed, 24 Jun 2009 21:52:05 +0000 (23:52 +0200)]
Name unions to enable compilation on Solaris

Patch by Brian Cameron <brian.cameron@sun.com>.
Fixes bug 578199.

14 years agoFix 'make check'.
C. Scott Ananian [Wed, 24 Jun 2009 18:12:52 +0000 (14:12 -0400)]
Fix 'make check'.

Commits 0561c1e84 and f88185674 (for b.g.o 585427 and 585368) broke 'make
check' because they forgot to update Everything-1.0-expected.gir when
additional tests were added to the Everything library.  Add the new
methods to the -expected.gir file.

14 years agoAdd tests for array as output argument and fixed-size arrays in Everything
Simon van der Linden [Wed, 24 Jun 2009 15:16:48 +0000 (17:16 +0200)]
Add tests for array as output argument and fixed-size arrays in Everything

Add test_array_int_out to test arrays as output argument.
Add test_array_fixed_size_int_in, test_array_fixed_size_int_out, and
test_array_fixed_size_int_return to test fixed-size arrays as arguments.

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

14 years agoAdd two tests in Everything regarding multiple output arguments
Simon van der Linden [Wed, 24 Jun 2009 15:01:21 +0000 (17:01 +0200)]
Add two tests in Everything regarding multiple output arguments

Add test_utf8_out_out and test_utf8_out_nonconst_return in Everything to
test the return of more than one value in a tuple in dynamic bindings.

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

14 years agoBug 579008 - Don't override element-type for arrays
Colin Walters [Tue, 23 Jun 2009 21:51:15 +0000 (17:51 -0400)]
Bug 579008 - Don't override element-type for arrays

Annotation parser patch from: Tim Horton <hortont424@gmail.com>

If an explicit element type is specified, don't override it with
guint8.

14 years agoPost release version bump
Johan Dahlin [Mon, 22 Jun 2009 19:44:13 +0000 (16:44 -0300)]
Post release version bump

14 years agoCreate signed tags instead of lightweight ones
Johan Dahlin [Mon, 22 Jun 2009 19:37:47 +0000 (16:37 -0300)]
Create signed tags instead of lightweight ones

14 years agoUpdate NEWS GOBJECT_INTROSPECTION_0_6_3
Johan Dahlin [Mon, 22 Jun 2009 19:08:05 +0000 (16:08 -0300)]
Update NEWS

14 years agoBug 584423 – Add short/ushort support
Mark Lee [Fri, 19 Jun 2009 23:53:03 +0000 (16:53 -0700)]
Bug 584423 – Add short/ushort support

Add type tags for short and ushort, plus all of the requisite code needed
to utilize them in libgirepository.
Add support in the scanner's AST files.
Add test functions to the everything library and the expected gir file.

gtypelib.c constant validation fixed by Colin Walters <walters@verbum.org>

14 years agoUpdate annotation expected "tgir" for previous commit
Colin Walters [Thu, 18 Jun 2009 21:56:31 +0000 (17:56 -0400)]
Update annotation expected "tgir" for previous commit

Since we're not writing out the zero-terminated flag now when
we shouldn't, update the tests too.

14 years agoBug 585328 - Only set zero_terminated flag for types we know are
Simon van der Linden [Wed, 17 Jun 2009 21:30:19 +0000 (17:30 -0400)]
Bug 585328 - Only set zero_terminated flag for types we know are

Rationalize our setting of the zero_terminated flag; we shouldn't
set it if the gir doesn't say to.

14 years agoEverything: add a boxed property to TestObj
Andreas Rottmann [Wed, 17 Jun 2009 16:11:16 +0000 (18:11 +0200)]
Everything: add a boxed property to TestObj

14 years agoMake sure the scanner and compiler are able to find libeverything.so.1
Johan Bilien [Tue, 16 Jun 2009 17:41:29 +0000 (18:41 +0100)]
Make sure the scanner and compiler are able to find libeverything.so.1

and that it uses the uninstalled version.
Fixes make check (when libeverything.so.1 was uninstalled).

14 years agoBug 585579: actually check Everything-1.0-expected.gir
C. Scott Ananian [Mon, 15 Jun 2009 20:48:12 +0000 (16:48 -0400)]
Bug 585579: actually check Everything-1.0-expected.gir

As discussed in bug 585908, we also rename CHECKGIRS and EXPECTEDGIRS to
match the naming in tests/scanner/Makefile.am.

14 years agoFix distcheck. A couple of files was missing from EXTRA_DIST.
Marco Pesenti Gritti [Mon, 15 Jun 2009 20:21:53 +0000 (16:21 -0400)]
Fix distcheck. A couple of files was missing from EXTRA_DIST.

14 years agoAnnotate g_get_system_*_dirs ()
Johan Bilien [Mon, 15 Jun 2009 11:36:31 +0000 (12:36 +0100)]
Annotate g_get_system_*_dirs ()

14 years agoBug 585579: Update Everything-1.0-expected.gir to match recent array/strv changes.
C. Scott Ananian [Fri, 12 Jun 2009 15:19:40 +0000 (11:19 -0400)]
Bug 585579: Update Everything-1.0-expected.gir to match recent array/strv changes.

14 years agoBug 585373: Add annotations for g_spawn_* functions.
C. Scott Ananian [Fri, 5 Jun 2009 22:07:25 +0000 (18:07 -0400)]
Bug 585373: Add annotations for g_spawn_* functions.

14 years agoBug 585584: Fix warnings in girparser backtrace functionality and compiler.c
C. Scott Ananian [Fri, 12 Jun 2009 15:52:56 +0000 (11:52 -0400)]
Bug 585584: Fix warnings in girparser backtrace functionality and compiler.c

14 years agoBug 585374: Fix misspelling of 'infinite'.
C. Scott Ananian [Mon, 18 May 2009 18:23:29 +0000 (14:23 -0400)]
Bug 585374: Fix misspelling of 'infinite'.

14 years agoBug 581685: Parse parameterized types (using <>) in annotations.
C. Scott Ananian [Fri, 12 Jun 2009 14:57:38 +0000 (10:57 -0400)]
Bug 581685: Parse parameterized types (using <>) in annotations.

You can now specify a nested parameterized type in annotations as
(for example):
  @param: (type GLib.HashTable<utf8,GLib.HashTable<utf,utf>>)
or
  @param: (element-type utf8 GLib.HashTable<utf,utf>)

New test functions for the Everything typelib show how it works.

14 years agoMake g-ir-compiler find files installed by make install
Holger Hans Peter Freyther [Mon, 1 Jun 2009 07:18:43 +0000 (09:18 +0200)]
Make g-ir-compiler find files installed by make install

When ./configure --prefix $HOME/some/where is used gobject-introspection
will happily install the files into $HOME/some/where/data/gir-1.0 but
it will refuse to find them. Apply the same trick as in
girepository/girepository.c:init_globals to find the gir files.

Unifiy the name gir-1.0 in GIR_SUFFIX and use it throughout the
project, introduce GIR_DIR which holds the path to the gir files and
update girparser and transformer.py to look into this path.

14 years agoDon't fail if no --output option is specified
Colin Walters [Thu, 11 Jun 2009 13:53:35 +0000 (09:53 -0400)]
Don't fail if no --output option is specified

Printing to stdout is legitimate.

14 years agoRemove duplicate typelib installation rules
root [Wed, 10 Jun 2009 19:00:17 +0000 (15:00 -0400)]
Remove duplicate typelib installation rules

No need to list them twice, and it confuses/breaks some install tools.

14 years agoBug 577546 - More annotations for GLib, GObject, Gio
Colin Walters [Tue, 9 Jun 2009 19:51:57 +0000 (15:51 -0400)]
Bug 577546 - More annotations for GLib, GObject, Gio

Patch modified from one by Norbert Freese <nf2.email@gmail.com>.

14 years agoBug 577534 - Use rename to write new typelibs, instead of in-place overwrite
Colin Walters [Tue, 9 Jun 2009 18:03:47 +0000 (14:03 -0400)]
Bug 577534 - Use rename to write new typelibs, instead of in-place overwrite

This avoids having processes with the typelibs currently open exploding
immediately.

14 years agoBug 584453 - Handle char ** correctly (and const variation)
Colin Walters [Thu, 4 Jun 2009 17:51:26 +0000 (13:51 -0400)]
Bug 584453 - Handle char ** correctly (and const variation)

This patch fixes our default handling of char **.  We add Return
node types as a case where we test for array handling.

Remove the hardcoded assumption of array = "no transfer", just
use the separate Parameter/Return cases.  This change causes
inout char ** to be transfer="full", but that seems more correct.

14 years agoAdd a test_strv_out which is unannotated, rename current to test_strv_out_container
Colin Walters [Thu, 4 Jun 2009 16:40:41 +0000 (12:40 -0400)]
Add a test_strv_out which is unannotated, rename current to test_strv_out_container

We need a test case for a plain unannotated char ** return value, which
should be an array.

Keep the old annotated test as a test case for the container transfer.

14 years agoBug 585081 - Correct everything linkage
Simon van der Linden [Mon, 8 Jun 2009 16:51:33 +0000 (12:51 -0400)]
Bug 585081 - Correct everything linkage

We need to link with gobject.

14 years agoMove Everything into gir/, since it's a public library
Colin Walters [Thu, 4 Jun 2009 19:35:01 +0000 (15:35 -0400)]
Move Everything into gir/, since it's a public library

Everything isn't a test for quite a while now, it's a public library.
So move it to gir/.

14 years agoAdd an Everything-1.0-expected.gir, test Everything versus it
Colin Walters [Thu, 4 Jun 2009 16:42:11 +0000 (12:42 -0400)]
Add an Everything-1.0-expected.gir, test Everything versus it

We should be testing the Everything library as well.

14 years agoAdd GLclampf to the GL GIR
Emmanuele Bassi [Thu, 4 Jun 2009 12:15:31 +0000 (13:15 +0100)]
Add GLclampf to the GL GIR

The GLclampf type is missing from the GL definitions.

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

14 years agoAnnotations for g_option_context_parse.
C. Scott Ananian [Mon, 18 May 2009 21:10:14 +0000 (17:10 -0400)]
Annotations for g_option_context_parse.

These annotations match those for gtk_init(), which takes the same
types of arguments.

14 years agoA few transfer-related tests for "Everything"
Andreas Rottmann [Fri, 29 May 2009 20:35:07 +0000 (22:35 +0200)]
A few transfer-related tests for "Everything"

14 years agoFix pep8.py and its invocation.
Chris Rivera [Wed, 20 May 2009 23:29:33 +0000 (19:29 -0400)]
Fix pep8.py and its invocation.

pep8.py:input_file() normally returns the number of errors found in a
given file, but it returns an empty dict if the file is excluded.  Change
it to return 0 instead.

config.py is auto-generated with a prefix that may be longer than
80 characters.  Exclude config.py in the pep8.py check.  This fixes
4042.

14 years agoBetter handle classes with non-standard to_underscore names.
C. Scott Ananian [Wed, 20 May 2009 00:17:08 +0000 (20:17 -0400)]
Better handle classes with non-standard to_underscore names.

Previously we tried to guess what the "underscore version" of a class name
would be, but for classes like NMSetting8021x we'd guess "nm_setting8021x"
instead of "nm_setting_802_1x".  All such guesses are subject to error:
instead let's try to use the prefix of the _get_type() method instead, and
only guess if that doesn't work.

We do this for both class names and when detecting methods.  An additional
type with a "non-standard" underscored version (TestWi8021x) added to the
everything.[ch] test suite to test proper conversion.

GdkWindow and GObject have unusual get_type methods; add special quirks
to handle these (at least until the methods are renamed upstream).

(Slightly modified for PEP8 compliance by Colin Walters)

Signed-off-by: Colin Walters <walters@verbum.org>
14 years agoUpdate doc comments.
C. Scott Ananian [Tue, 5 May 2009 17:06:37 +0000 (13:06 -0400)]
Update doc comments.

The enumeration values cited here were out of date.  Rewrite to eliminate
the explicit mention of the enumeration value, to prevent it from
drifting out of date again in the future.

14 years agoAdd GHash tests to Everything test GI library.
C. Scott Ananian [Fri, 1 May 2009 17:36:28 +0000 (13:36 -0400)]
Add GHash tests to Everything test GI library.

14 years agoFix the list comparison assertions.
C. Scott Ananian [Fri, 1 May 2009 22:20:06 +0000 (18:20 -0400)]
Fix the list comparison assertions.

We weren't checking the length of the input list, and we were erroneously
comparing every element in the test sequence against the *first* element
of the passed-in list.

14 years agoEverything: more tests for integer array parameters.
C. Scott Ananian [Fri, 1 May 2009 20:32:33 +0000 (16:32 -0400)]
Everything: more tests for integer array parameters.

14 years agoFix annotations for GList and GSList tests.
C. Scott Ananian [Fri, 1 May 2009 17:33:04 +0000 (13:33 -0400)]
Fix annotations for GList and GSList tests.

14 years agoEnable the utf8 tests in the everything module.
C. Scott Ananian [Fri, 1 May 2009 16:00:45 +0000 (12:00 -0400)]
Enable the utf8 tests in the everything module.

We needed to tweak a couple of the tests for correctness.

14 years agoAllow the use of the "Rename To" annotation for literal method renaming.
C. Scott Ananian [Mon, 27 Apr 2009 14:48:12 +0000 (10:48 -0400)]
Allow the use of the "Rename To" annotation for literal method renaming.

As originally implemented, this annotation was only used for method
overloading (argument signature polymorphism).  Allow it to be used to
clean up historically poorly-named methods as well.

14 years agoRemove orphan text, left over from parent document.
C. Scott Ananian [Mon, 27 Apr 2009 14:47:40 +0000 (10:47 -0400)]
Remove orphan text, left over from parent document.

14 years agoRemove (out) annotation for now from Everything structs
Colin Walters [Thu, 7 May 2009 18:41:30 +0000 (14:41 -0400)]
Remove (out) annotation for now from Everything structs

Right now these annotations don't work; (out) is for callee-allocates.
For more information see
http://bugzilla.gnome.org/show_bug.cgi?id=573314

14 years agoFix typo in the TestInterface gtype name
Tomeu Vizoso [Wed, 6 May 2009 13:18:36 +0000 (15:18 +0200)]
Fix typo in the TestInterface gtype name

15 years agoAdd an interface to Everything
Tomeu Vizoso [Tue, 5 May 2009 16:33:55 +0000 (18:33 +0200)]
Add an interface to Everything

15 years agoAdd element type annotations for GList arguments
Marina Zhurakhinskaya [Fri, 1 May 2009 22:13:39 +0000 (18:13 -0400)]
Add element type annotations for GList arguments

g_app_info_launch and g_app_info_launch_uris needed element type annotations
for their GList arguments.

15 years agoAvoid writing out empty array if we have no _get_type functions
Colin Walters [Fri, 3 Apr 2009 19:12:04 +0000 (15:12 -0400)]
Avoid writing out empty array if we have no _get_type functions

Zero length arrays are a GNU C extension, so this way we don't
fail on non-GCC.

15 years agoFix 'Could not find GIR file ...' error to use right filename.
Dan Winship [Sat, 28 Mar 2009 12:34:36 +0000 (08:34 -0400)]
Fix 'Could not find GIR file ...' error to use right filename.

Also plug a leak; girname was previously only freed on error.

15 years agoBug 576605 - Get rid of GI_SCOPE_TYPE_OBJECT
Andreas Rottmann [Fri, 27 Mar 2009 18:31:55 +0000 (19:31 +0100)]
Bug 576605 - Get rid of GI_SCOPE_TYPE_OBJECT

Remove support for (scope object) as it lacks a real use case.

15 years agoAnnotate g_filename_completer_get_completions
Johan Dahlin [Thu, 26 Mar 2009 01:18:04 +0000 (22:18 -0300)]
Annotate g_filename_completer_get_completions

15 years agoRemove spurious addition of 'GSList *handlers' in last commit
Andreas Rottmann [Tue, 24 Mar 2009 19:33:53 +0000 (20:33 +0100)]
Remove spurious addition of 'GSList *handlers' in last commit

15 years agoAdditions to the 'Everything' namespace
Andreas Rottmann [Tue, 24 Mar 2009 19:26:36 +0000 (20:26 +0100)]
Additions to the 'Everything' namespace

- Make the destroy-notfied callback test harder by retaining the
  callbacks until test_callback_thaw_notifications() is called.

15 years agoBug 576323 - Fix inner constant parsing Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>
Didier 'Ptitjes [Sun, 22 Mar 2009 20:50:40 +0000 (21:50 +0100)]
Bug 576323 - Fix inner constant parsing Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>

Signed-off-by: Colin Walters <walters@verbum.org>
15 years agoInclude g-ir-scanner.in in the distribution
Johan Bilien [Tue, 24 Mar 2009 18:36:18 +0000 (18:36 +0000)]
Include g-ir-scanner.in in the distribution

and other make distcheck fixes.

15 years agoAdd a test signal with an argument flagged as G_SIGNAL_TYPE_STATIC_SCOPE
Johan Bilien [Tue, 24 Mar 2009 11:12:38 +0000 (11:12 +0000)]
Add a test signal with an argument flagged as G_SIGNAL_TYPE_STATIC_SCOPE